Does anyone have code to mount a single virtual CD, like daemon tools
would? Would only need it to mount an ISO (but the program is going to
actually be embedded into a website, as part of a fileserver.) Thanks!
Gordon Beaton - 28 Apr 2006 16:05 GMT
> Does anyone have code to mount a single virtual CD, like daemon
> tools would? Would only need it to mount an ISO (but the program is
> going to actually be embedded into a website, as part of a
> fileserver.) Thanks!
Since you use the term "mount" I'll assume you're using Unix or simlar
OS. AFAIK most such platforms can mount ISO-files just fine, perhaps
by specifying an extra flag for the mount command:
String[] mountCmd = {
"mount",
options,
filename,
mountPoint };
Runtime.getRuntime().exec(mountCmd);
/gordon

Signature
[ do not email me copies of your followups ]
g o r d o n + n e w s @ b a l d e r 1 3 . s e
Alun Harford - 28 Apr 2006 23:14 GMT
> Does anyone have code to mount a single virtual CD, like daemon tools
> would? Would only need it to mount an ISO (but the program is going to
> actually be embedded into a website, as part of a fileserver.) Thanks!
If you're working on a Unix system, it's trivial (just runexec the mount
command - most systems can just mount ISOs).
If you're using Windows, you're going to have to code a driver (ie. not use
java). Or use daemon tools and runexec the command to mount the ISO.
Alun Harford