Announcement

Collapse
No announcement yet.

Mounting IMAGE with Relative File Path

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

  • Mounting IMAGE with Relative File Path

    A way to mount IMAGES relative to the Daemon Script or Batch File. The idea is to have an image file on a CD, and a batch file to mount the image automatically... the downside is you would have to know what drive letter the actual cd is in.

    so.... instead of d:\image.mds
    this.... image.mds

  • #2
    first thing: check the helpfile in the D-Tools install directory, there is a folder named help with a file, you need to look for Command Line Switches

    the thing with the drive letter is quiet easy
    make a bat or cmd file and copy this into it to store the driveletter in the variable %CDDRIVE%

    tagfile=\folder (or \folder\file, must be a file on the CD because this looks for this file)
    for %%i in (c d e f g h i j k l m n o p q r s t u v w x y z) do if exist "%%i:%tagfile%" set CDDRIVE=%%i:
    (this is supposed to be in one line)

    then you can use the cd like this: %CDDRIVE%\FOLDER\FILE

    Comment


    • #3
      Thank you! I'd completely forgotten about this post. I came up with a solution a while back:

      SET filepath="%cd%\CoD1.mds"
      "C:\Program Files\D-Tools\daemon.exe" -unmount 0 -mount 0,%filepath%


      Also, daemon.exe should be listed in the autoexec, it would make this much easier still.

      Comment

      Working...
      X