Sign in to follow this  
Followers 0
erik7426

Daemon Tools... Help!

3 posts in this topic

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

Share this post


Link to post
Share on other sites



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]

Share this post


Link to post
Share on other sites

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.

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  
Followers 0