| View previous topic :: View next topic |
| Author |
Message |
kazRium
Joined: 13 Mar 2009 Posts: 2
|
Posted: Fri Mar 13, 2009 10:09 pm Post subject: Possible BUG found with %MYFILES% in version 3.2.1.0 |
|
|
I noticed this today when trying to create a very simple exe. The batch file looked like the following:
@ECHO OFF
start regedit /s %MYFILES%\gnis.reg
I created the exe to run with "Ghost Application" settings, added the reg file to the "additional files" section. Everything seemed straight forward, but the exe was not adding the key to the registry like it was supposed to. When I ran the reg file by itself, it worked fine.
After a few minutes of frustration, I decided to add a "pause" command to the end of the batch file, and surprisingly everything worked fine. When I took the pause off it no longer worked. I ended up adding a sleep command that has the batch file sleep for 5 seconds so the final file looks like this
@ECHO OFF
start regedit /s %MYFILES%\gnis.reg
C:\sleep.exe 5
Now everything works correctly. This only started happening after I upgraded to the latest version of QBFC, the older version I was using worked fine. I am wondering if the %MYFILES% file is being removed before the command is run? Is this a known issue, or am I doing something wrong?
If you need any additional information, I'll be happy to provide it.
Thanks, |
|
| Back to top |
|
 |
|
|
support Site Admin
Joined: 13 Feb 2004 Posts: 257
|
Posted: Mon Mar 16, 2009 10:51 pm Post subject: |
|
|
| Just use WAIT option for START command. |
|
| Back to top |
|
 |
kazRium
Joined: 13 Mar 2009 Posts: 2
|
Posted: Wed Mar 18, 2009 6:55 pm Post subject: |
|
|
| It was my fault. I just removed the start command completely, and it works fine. Thanks for pointing me in the right direction on that. |
|
| Back to top |
|
 |
|