View Full Version : How to control the operation of DAEMON Tools automatically by Programming!

21.02.2007, 08:25
I want to write a program which can load a given image file to given virtual driver automatically using Daemon Tools before doing something. Is there any way to do this?

Thank you very much!

21.02.2007, 12:05
DTools supports command-line mounting. Check the help files.

21.02.2007, 19:33
I think what you are trying to accomplish could easily be done using vb or vbscript. I am not sure what you intention is.. We made a bunch of launchers for games on a project, here is the source code:

Attribute VB_Name = "Module1"
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Sub Main()

Dim winshell
Dim fileName
Dim returnVal
Dim file
Set file = CreateObject("Scripting.FileSystemObject")
Set winshell = CreateObject("WScript.Shell")
returnVal = winshell.run("C:\PROGRA~1\DAEMON~1\daemon.exe -mount 0,C:\DOCUME~1\ALLUSE~1\CDIMAGES\SpyMaster_Prank.is o")
Do While Not file.FileExists("F:\Episode1\Episode1\SpyMasters1.exe")
Sleep 50
winshell.run ("C:\PROGRA~1\JUMPST~2\UNMASK~1\SPYMAS~1.LNK")

End Sub