SWB Posted March 2, 2012 Share Posted March 2, 2012 I'm only able to get one of these exe to run, what's wrong? Thanks, Opt('MustDeclareVars', 1) Global $Program = 'C:\Program Files\SlySoft\AnyDVD' Global $Program = 'C:\Program Files\DVD Decrypter' ; Prompt the user to run the script - use a Yes/No prompt Local $answer = MsgBox(4, "DVDDecrypter", "Run DVDDecrypter On Drive G: In File Mode, DeCrypt All Files") ; Check the user's answer to the prompt ; If "No" was clicked (7) then exit the script If $answer = 7 Then MsgBox(0, "AutoIt", "OK. Bye!") Exit EndIf RunWait($Program & '\AnyDVD.exe'); Starts AnyDVD, Reads Disc Sleep (20000); Waits 20 Seconds, giving AnyDVD time to read disc Run("REGEDIT /S C:\reg\AnyDVDec.reg");Setup AnyDVD and DVDDecrypter ;with the decryption processing being handled by AnyDVD Sleep (5000); Waits 5 seconds, before starting DVDDecrypter RunWait($Program & '\DVDDecrypter.exe /SRC G: /MODE FILE /FILES ALL /CLOSE') Run("REGEDIT /S C:\reg\DVDecDef.reg");Set DVDDecrypter back to default settings Exit Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted March 2, 2012 Moderators Share Posted March 2, 2012 You can't declare $Program again like that, you have to increment it. Try $Program1 and $Program2 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
SWB Posted March 3, 2012 Author Share Posted March 3, 2012 You can't declare $Program again like that, you have to increment it. Try $Program1 and $Program2Thank You, that did it!SWB Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now