 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Sat Apr 16, 2005 9:17 pm Post subject: Mounting Images to Virtual Drives at Startup |
|
|
I've only written one successful script and I would like to figure out (as a clone cd user) how to make a script which checks the drives (three are 'virtual' and when it finds an empty one it 'mounts' an image file to it at startup. Right now I just go to My Computer and right click on the drives, click 'Mount..' and then the file. I found one script that checks the drives but I don't know what to do from there... can anyone be of assistance? Thanks,
mike
| Code: | #NoTrayIcon
#Persistent
if A_{
DriveGet, lista, List, CDROM ;get all CD drives
Stringlen, cd_len, lista ;how much of drives?
Loop, %cd_len% ;for each drive
{
stringmid cd_letter, lista, %A_Index%, 1 ;get name of drive
driveget isopen, StatusCD, %cd_letter% ;check if it is empty
n {
MOUSECLICK, Right?
Down (guesses)
Down
Right
Enter
}
}
}
ExitApp |
|
|
| Back to top |
|
 |
frreakkk Guest
|
Posted: Sun Apr 17, 2005 11:10 pm Post subject: |
|
|
i don't use cd clone-- but i do use a free ware prog name named daemon tools (just google 'daemon tools cd emulator'). you can mount several images at once (i think its up to 4..).. and you can use command line switches to do any of the features available from tray icon
| Code: | | Run, daemon.exe -mount 0`,"c:\IMAGE NAME.ISO" |
..very handy..!
corey |
|
| Back to top |
|
 |
Foonman1
Joined: 24 Apr 2005 Posts: 9 Location: San Jose California
|
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|