1.

Solve : Converting Batch (sub exe)?

Answer»

I was having a little trouble with a batch file after I converted (notice how I did not compile it) it to an exe. When I TRY to run getpassword.exe (in the script I just put Code: [Select]getpassword) but when I convert it, once it reaches that stage, it crashes. Any help?
don't convert it?

it probably crashes because the stub EXE is re-writing your batch file into your TEMP folder- and when it runs the batch it changes the directory to the TEMP folder. your "getpassword" program isn't there.

just a guess, though.Quote from: BC_Programmer on May 02, 2009, 08:27:25 PM

don't convert it?

it probably crashes because the stub EXE is re-writing your batch file into your TEMP folder- and when it runs the batch it changes the directory to the TEMP folder. your "getpassword" program isn't there.

just a guess, though.
Ohh...I see...so if I change it to "C:\Documents and Settings\User\Desktop\getpassword.exe" it should work?

Although it doesn't give a file not FOUND error or a not-command error, it just crashes.Batch converters cannot use all the features of cmd, sometimes they "just crash" and the problem is that the AUTHORS don't always tell you what to avoid. This is another reason why they are a bad idea.
Quote from: Dias de verano on May 03, 2009, 12:44:09 AM
Batch converters cannot use all the features of cmd, sometimes they "just crash" and the problem is that the authors don't always tell you what to avoid. This is another reason why they are a bad idea.

Could I START getpassword, and pause the script, and continue on with the script when the user presses a BUTTON?


Discussion

No Comment Found