FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister   ProfileProfile    Log inLog in   RSS Feed

Daemon mount script? (to be used w Daffy's Windvd script)

 
Post new topic   Reply to topic    Salling Software Forums Forum Index -> Scripting Salling Clicker for Windows
View previous topic :: View next topic  
Author Message
kiboy6
Senior Member


Joined: 02 Feb 2006
Posts: 96

PostPosted: Tue Mar 28, 2006 11:07 pm    Post subject: Daemon mount script? (to be used w Daffy's Windvd script) Reply with quote

Hi everyone,

I was just wondering if anyone else would find this useful:

I use Daffy's great Windvd script all the time to play dvd image files (iso/img/nrg format) directly off my hard drive.

I use Daemon tools to mount these image files on a virtual drive on my pc.

It would be really great if I could chose which image file to mount from the comfort of my sofa!

I imagine this would be a super simple script...simply to select an image file and mount it with Daemon tools......anyone have any idea how this could be done?

Many thanks in advance

:D
Back to top
View user's profile Send private message
daffy
Junior Member


Joined: 14 Jan 2006
Posts: 36
Location: Erlangen, Germany

PostPosted: Wed Mar 29, 2006 11:29 pm    Post subject: Reply with quote

Hi kiboy,

I am not familiar with the Daemon tools. How do you mount an image with them? Is there a possibility to mount an image via the commandline, e.g. "daementools.exe myimage.img>"?
Back to top
View user's profile Send private message
daffy
Junior Member


Joined: 14 Jan 2006
Posts: 36
Location: Erlangen, Germany

PostPosted: Wed Mar 29, 2006 11:35 pm    Post subject: Reply with quote

just found the following:

# -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)


With this Info it should be very easy to write a simple script to mount an image. (based on the open script from BSPlayer for example).

Necessary changes:
1. exchange possible file extensions to the ones for images.
2. exchange the command line to the appropriate one for mounting
Back to top
View user's profile Send private message
kiboy6
Senior Member


Joined: 02 Feb 2006
Posts: 96

PostPosted: Thu Mar 30, 2006 12:02 am    Post subject: Reply with quote

Thanks so much for your help Daffy...

Unfortunately, I am fairly clueless when it comes to scripting.. Would you be able to give me any help in turning this info into a really simple script?

It could be really really simple actually, as "unmount" isn't necessary...this occurs automatically when you "mount" another image...

Oh, and the only file extensions necessary would be .iso .img .nrg and .cue

Many thanks,

Kian
Back to top
View user's profile Send private message
daffy
Junior Member


Joined: 14 Jan 2006
Posts: 36
Location: Erlangen, Germany

PostPosted: Fri Mar 31, 2006 2:13 pm    Post subject: Reply with quote

Ok, I will try to write this script. The Problem is, I will not be able to test it, because I do not have the Daemon Tools installed. I will nead your help here.

Please download the Script and test it. Since I do not know a registry entry leading to the Path of Daemon Tools, I assumed that you have it installed in "C:\Program Files\D-Tools". Let me know if this is not the case, because it will then not work until modified... I'm using the following command line:
"<DTPath>\daemon.exe -mount 0, <selected image>"


Could you also try to find out the following please. It would help to circumvent the problem of using a fixed path. Note that it may not be possible to find the requested entry, see [url]http://www.daemon-tools.cc/dtcc/showthread.php?t=9333&highlight=registry[/url]

I need the registry-key leading to the path of the daemon tools.

Please start "regedit" on your computer and search for "daemon" or "D-tools". I guess ist is something like:

HKEY_CURRENT_USER\\Software\\Daemon-tools

If you find such an entry, pleases search for a variable leading to the Directory of Daemon Tools, e.g. "InstallDir" or "Path".
If you find such an entry, please post the complete Path here, e.g. "HKEY_CURRENT_USER\\Software\\Daemon-Tools\\InstallDir"


Last edited by daffy on Sun Apr 02, 2006 2:00 pm; edited 2 times in total
Back to top
View user's profile Send private message
kiboy6
Senior Member


Joined: 02 Feb 2006
Posts: 96

PostPosted: Fri Mar 31, 2006 10:52 pm    Post subject: Reply with quote

Thank you so much Daffy...its so kind of you to try to write this :D

I tried it out and it doesn't work...yet!... When i try to use the script to mount an image i get error message :

Windows cannot find 'C:\Program Files\D-Tools\daemon.exe -mount0,'

However my daemon.exe [u]is[/u] installed in "C:\Program Files\D-Tools"


I'm not very experienced with exploring the registery...

When i searched for "daemon" in the registery i got this key:
HKEY_CLASSES_ROOT\CLSID\{E56829C9-2D59-11d2-BE38-3078302C2030}

Under the data column in regedit this one said "Component Categories conditional cache daemon"

I doubt that is the one you want!

A search for d-tools in regedit gave me this result
key name: HKEY_CLASSES_ROOT\Cue File\DefaultIcon

Under thte data column:
"C:\Program Files\D-Tools\DAEMount.exe,0"

After I exited regedit and reopened it i searched for both daemon and d-tools again and got two new keys:

search for "daemon"
HKEY_CLASSES_ROOT\Applications\daemon.exe
Under thte data column: 'value not set'

search for "d-tools"
HKEY_CLASSES_ROOT\B5T Image\DefaultIcon
Under thte data column:
"C:\Program Files\D-Tools\DAEMount.exe,0"

these last two results came when "my computer" was highlighted on the left side of regedit before i began the search


I hope these results help...sorry not to be more scientific with the regedit search, but like i said, i don't really know what i'm doing in there!

If there is anything more specific you would like me to look into in regedit do let me know.

Once again, thanks so much for your time and help daffy,

Kian
Back to top
View user's profile Send private message
daffy
Junior Member


Joined: 14 Jan 2006
Posts: 36
Location: Erlangen, Germany

PostPosted: Sat Apr 01, 2006 12:21 pm    Post subject: Reply with quote

Hello Kiboy,

well, I donīt know about the registry entries. The one containing the path could be used, but I doubt, that everybody who has deamon tools installed will have this entry. I guess you have the entry, because you have associated .cue files with daemon tools... But since the script only has to work on your computer so far, the fixed path to daemon tools will do for now.

Would you please try the following, hopefully fixed, script?



Daemon Tools Mount Image.zip
 Description:
Daemon Tools Mount Image, 04/01/2006
Beta release 1

Download
 Filename:  Daemon Tools Mount Image.zip
 Filesize:  1.95 KB
 Downloaded:  1447 Time(s)

Back to top
View user's profile Send private message
kiboy6
Senior Member


Joined: 02 Feb 2006
Posts: 96

PostPosted: Sat Apr 01, 2006 11:24 pm    Post subject: Reply with quote

WOW!!!

Thank you Daffy! This works perfectly for me now....coupled with your great windvd script this means i can be truly lazy..

thanks so much for your kind work!
Back to top
View user's profile Send private message
daffy
Junior Member


Joined: 14 Jan 2006
Posts: 36
Location: Erlangen, Germany

PostPosted: Sun Apr 02, 2006 2:06 pm    Post subject: Reply with quote

I am glad to here it :).

If someone knows a registry entry leading to the installation path, I can make it a script useable on any computer with installed dameon tools. So far anybody installed daemon tools to a different directory then "c:\program files\d-tools" will have to exchange the path in the first line of "Daemon Tools Mount Image.js" which now reads

var fixedPath = "C:\\Program Files\\D-Tools";

to the desired one. (Donīt ferget to use "\\" instead of "\")
Back to top
View user's profile Send private message
Ferraridude
Newbie


Joined: 26 Mar 2006
Posts: 1

PostPosted: Thu Apr 20, 2006 1:11 am    Post subject: Reply with quote

wow thx daffy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Salling Software Forums Forum Index -> Scripting Salling Clicker for Windows All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group