Jump to content
Sign in to follow this  

RUNWAIT command wont execute my batch file

Recommended Posts


so i am trying to make this simple program that runs silent installations of a few programs. I have a dialog box that has a series of check boxes where you can select which programs to install. I can get one to work(adobe flash) but acro reader will not work. When i check the acroreader checkbox and click my install button the command prompt opens but does not insert the command line to run the silent install. here is the code:

If GUICtrlRead(10) = 1 Then ;prog7

RunWait("Silent Installs\Adobe Flash Player ActiveX 9\adobeFlashXbat.bat")


now i assure you the batch file does work on its own i.e. when i double click the batch file it runs the silent install.

Share this post

Link to post
Share on other sites

...RunWait("Silent Installs\Adobe Flash Player ActiveX 9\adobeFlashXbat.bat")...

Batch files require @ComSpec

FileOpen("1\2\test.bat", 2)
FileWrite("1\2\test.bat", "pause")
RunWait(@ComSpec & " /c " & "1\2\test.bat")
This worked for me.


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Create New...