Jump to content
Sign in to follow this  
gingerpantman

Launching Bat file as second install

Recommended Posts

gingerpantman

Hi Guys, As you can see my script below. the bit in green works fine, However once thats finished i need it to call another batch file....This then fails, guessing its not running the batch file. I have confirmed the batch file works fine. Anyone got any ideas?

; Script Start - Add your code below here
Run ("Install3MDrivers.exe")
winwaitactive ("3M USB Reader Driver Installation")
Send ("{enter}")
winwaitactive ("Device Driver Installation Wizard")
Send ("!n")
Winwaitactive ("Device Driver Installation Wizard", "Completing the Device Driver Installation Wizard")
Send ("{enter}")

; Install full software
run ("RFID.bat")

 

Share this post


Link to post
Share on other sites
ViciousXUSMC

Try ShellExecute() and if its not in the script directory you need the path. 

Another thing to check since you have Waits in the script is to ensure that your script is not paused waiting for a window.

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  

×