erik7426 Posted December 23, 2008 Share Posted December 23, 2008 Does anyone have any experience scripting DTProAgent command line? The blurb on their website gives this as "help" -mount allows mounting images from command line (or shortcut). Syntax is: DTProAgent.exe -mount [scsi | ide], <n>, <path> where 'scsi' or 'ide' means the drive type ('scsi' is the value by default), 'n' means DVD-ROM device number and 'path' is the full path to the image file. Example: DTProAgent.exe -mount scsi, 0,"c:\My Images\nameofimage.cue". Do not forget to set the path in quotes if it contains spaces! -unmount allows unmounting images from command line. Syntax is: DTProAgent.exe -unmount [scsi | ide], <n>where 'n' means DVD-ROM device number and 'scsi' or 'ide' means the drive type ('scsi' is the default value) . Example: DTProAgent.exe -unmount scsi, 0 I have tried everything I can think of to get this to work. Anyone have any ideas? $q = Chr(34) $Agent = @ProgramFilesDir & "\DAEMON Tools Pro\DTProAgent.exe" $Filter = "Supported Image Types (*.b5t;*.b6t;*.bwt;*.ccd;*.cdi;*.cue;*.iso;*.mds;*.nrg;*.pdi;*.isz)|All Files (*.*)" $SelectISO = FileOpenDialog("Select Image File to Mount", @MyDocumentsDir, $Filter, 3) If $SelectISO <> "" Then RunWait($Agent & " -mount scsi, 0," & $q & $SelectISO & $q,@ProgramFilesDir & "\DAEMON Tools Pro") $myError = @error MsgBox(0,"",$myError) EndIf Link to comment Share on other sites More sharing options...
Skruge Posted December 23, 2008 Share Posted December 23, 2008 You added quotes around the image name, but not around the exe itself. Try this:$Agent = $q & @ProgramFilesDir & "\DAEMON Tools Pro\DTProAgent.exe" & $q [font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font] Link to comment Share on other sites More sharing options...
lane3716 Posted December 25, 2008 Share Posted December 25, 2008 You may want to try this: $Agent = '"' & @ProgramFilesDir & '\DAEMON Tools Pro\DTProAgent.exe"' Since the path is using long names it has to be encapsulated in quotes so you have to use single quotes as well in the line. 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