Jump to content
Sign in to follow this  

Help on this script

Recommended Posts

I'm only able to get one of these exe to run, what's wrong?


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



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


Share this post

Link to post
Share on other sites

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

Thank You, that did it!


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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...