Abyssmedia.com Forum Index Abyssmedia.com
Abyssmedia Support Forums
 
  FAQ    Search    Memberlist    Usergroups   Register 
  Profile    Log in to check your private messages    Log in 

Possible BUG found with %MYFILES% in version 3.2.1.0

 
Post new topic   Reply to topic    Abyssmedia.com Forum Index -> Quick Batch File Compiler
View previous topic :: View next topic  
Author Message
kazRium



Joined: 13 Mar 2009
Posts: 2

PostPosted: Fri Mar 13, 2009 10:09 pm    Post subject: Possible BUG found with %MYFILES% in version 3.2.1.0 Reply with quote

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: 376

PostPosted: Mon Mar 16, 2009 10:51 pm    Post subject: Reply with quote

Just use WAIT option for START command.
Back to top
kazRium



Joined: 13 Mar 2009
Posts: 2

PostPosted: Wed Mar 18, 2009 6:55 pm    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    Abyssmedia.com Forum Index -> Quick Batch File Compiler All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001-2011 phpBB Group