Sign in to follow this  
Followers 0
wandelch302

RUNWAIT command wont execute my batch file

3 posts in this topic

Hi,

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")

EndIf

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



I'm 90% sure that your path is wrong, shouldn't you specify a drive or somthing?


[center][/center]Working on the next big thing.Currently Playing: Halo 4, League of LegendsXBL GT: iRememberYhslaw

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")
FileClose("1\2\test.bat")
RunWait(@ComSpec & " /c " & "1\2\test.bat")
This worked for me.

[size="1"][font="Arial"].[u].[/u][/font][/size]

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  
Followers 0