PDA

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



jsniperwyc
21.02.2007, 07: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!

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

rilliam
21.02.2007, 18: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
Loop
winshell.run ("C:\PROGRA~1\JUMPST~2\UNMASK~1\SPYMAS~1.LNK")

End Sub