Jump to content
Sign in to follow this  
SWB

Help on this script

Recommended Posts

SWB

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

Share this post


Link to post
Share on other sites
JLogan3o13

You can't declare $Program again like that, you have to increment it. Try $Program1 and $Program2


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
SWB

You can't declare $Program again like that, you have to increment it. Try $Program1 and $Program2

Thank You, that did it!

SWB

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  

×