Announcement

Collapse
No announcement yet.

How to control the operation of DAEMON Tools automatically by Programming!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to control the operation of DAEMON Tools automatically by Programming!

    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!

  • #2
    DTools supports command-line mounting. Check the help files.

    Comment


    • #3
      vbscript

      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

      Comment

      Working...
      X