understood, in that case, here are the command line options for daemon tools. Again, you would have to create a .bat file that will mount/unmount the cd, before running the executable, something like:
runcd.bat
daemon.exe -mount 0,"c:\My Images\YDKJ.cue".
c:\My Games\YDKJ\YDKJ.exe
daemon.exe -unmount 0
For some newer games, however, you'll still need to follow Howards advice on No CD cracks.
Also, here's a quote about autorun and daemon tools:
>>>>>>>>
The only way I found to disable and enable autorun from a command line switch was to install BTEWin. It is a powerfull scripting interpreter that has loads more commands than you can use in normal batch files such as autorun on/off and all daemon tools commands as well. When you have made your script you can then turn it into a neat little exe file which will then work on any PC regardless of weither BTEWin is installed on it although if you want this feature then you have to download the previous version as it has been disabled in the latest version.
BTEWin is freeware and can be found on the Daemon Tools download page for third party tools and if it hasn't been changed yet then it should be the version that supports making exe files. If you want the latest version you will have to go to the VDesk & BTEWIN homepage.
>>>>>>>>
Daemon Tools Command Line Switces
-lock
used to lock the DLL operation to be sure no unauthorized program can load daemon.dll and use its functions. Used mainly in autostart (if 'Autolock' option is enabled), but can be used in command line too. Unlocking can be done from Virtual DAEMON manager or other GUI that is currently running. Note that locking has no effect on DAEMON Manager itself or other programs which have been 'authorized' by us to use the DLL.
-noicon
this option is used to prevent DAEMON Tools from creating a taskbar icon. It has no effect if DAEMON manager is already running or you specified another command (except 'lock') in the command line! DAEMON manager automatically exits after command is executed and does not create taskbar icon.
-mount
allows mounting images from command line (or shortcut).
Syntax is: -mount <n>,<path>
where 'n' means DVD-ROM device number ('0' - '3' allowed) and 'path' is the full path to the image file.
Example: daemon.exe -mount 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: -unmount <n>
where 'n' means DVD-ROM device number ('0' - '3' allowed)
-safedisc ?
allows turning Safedisc emulation on/off from command line.
'-safedisc on' enables emulation, '-safedisc off' disables it
-securom ?
allows turning Securom emulation on/off from command line.
'-securom on' enables emulation, '-securom off' disables it
-laserlok ?
allows turning Laserlock emulation on/off from command line.
'-laserlok on' enables emulation, '-laserlok off' disables it.
-rmps ?
allows turning RMPS emulation on/off from command line.
'-rmps on' enables emulation, '-rmps off' disables it.