| View previous topic :: View next topic |
| Author |
Message |
Mrvw67 Newbie
Joined: 28 Apr 2005 Posts: 3
|
Posted: Thu Apr 28, 2005 2:29 pm Post subject: Proper use of a, Comma |
|
|
I'm sure this is a simple question. But I've been killing myself searching the forum's for this answer. Which stinks because I've found most other fixes/suggestions here.
In short I'm trying to mount a CD image to a Virtual drive using Daemon Tools. In DOS/Batch file this is as easy as changing to the DIR of Daemon.exe and typing Daemon.exe -mount 0, X:\filename.fil
So I figured it would be that simple.
RUN C:\program files\D-tools\Daemon.exe -mount 0, X:\filename.fil
However obviously the "," is causing the problem. Does anyone know how I can accomplish mounting an Image in VDS? It won't work with out the ",". Help? |
|
| Back to top |
|
 |
Hooligan VDS Developer


Joined: 28 Oct 2003 Posts: 480 Location: California
|
Posted: Thu Apr 28, 2005 7:59 pm Post subject: |
|
|
Hi Mrvw67,
Have you tried adding quotes:
RUN "C:\program files\D-tools\Daemon.exe -mount 0, X:\filename.fil"
Hooligan _________________ Hooligan
Why be normal? |
|
| Back to top |
|
 |
Mrvw67 Newbie
Joined: 28 Apr 2005 Posts: 3
|
Posted: Thu Apr 28, 2005 8:12 pm Post subject: |
|
|
Yes, if you use quotes nothing happens.
In the script I have it trying to Unmount anything already there. and then Mount something else.
RUN c:\program files\d-tools\daemon.exe -unmount 0
RUN c:\program files\D-tools\Daemon.exe -mount 0, X:\filename.fil
If there is already an image mounted the Unmount command works fine, as there is no need for a comma. However when you mount it, and need a comma to specify Image location. I've also tried the following which doesn't work either. I don't recieve an error MSG. This is because it's not sending the needed string to CMD window.
RUNH CMD /c "c:\program files\D-tools\Daemon.exe -mount 0, X:\filename.fil"
Any other suggestions? I know there has to be a work around for this. |
|
| Back to top |
|
 |
Hooligan VDS Developer


Joined: 28 Oct 2003 Posts: 480 Location: California
|
Posted: Thu Apr 28, 2005 8:32 pm Post subject: |
|
|
OK,
Lets try one more thing...
RUN "C:\program files\D-tools\Daemon.exe -mount 0"@chr(044)" X:\filename.fil"
Let me know if this works...
Hooligan _________________ Hooligan
Why be normal? |
|
| Back to top |
|
 |
Mrvw67 Newbie
Joined: 28 Apr 2005 Posts: 3
|
Posted: Thu Apr 28, 2005 8:41 pm Post subject: |
|
|
Awesome! Thank you so much. I've literally been trying to figure this out for 3 days. All over a silly comma. I never thought to send the character! Thanks again, my head will now stop hurting for the evening. |
|
| Back to top |
|
 |
Hooligan VDS Developer


Joined: 28 Oct 2003 Posts: 480 Location: California
|
Posted: Thu Apr 28, 2005 8:44 pm Post subject: |
|
|
Certainly!
Take 3 beers and call in the morning...
Hooligan _________________ Hooligan
Why be normal? |
|
| Back to top |
|
 |
Aslan Valued Contributor


Joined: 31 May 2001 Posts: 589 Location: Memphis, TN USA
|
Posted: Sun May 01, 2005 7:44 pm Post subject: |
|
|
This should also work,
RUNH cmd /c "C:\program files\D-tools\Daemon.exe" "-mount 0, X:\filename.fil"
In some cases I've had to write it this way,
RUNH cmd /c @chr(34)C:\program files\D-tools\Daemon.exe@chr(34) -mount 0"," X:\filename.fil
Part of your origonal problem was the space in "Program files"
When running a commandline, you need to enclose the <Path\FileToRun> in quotes if there are any spaces or use @shortname(<Path\FileToRun>)
Technically this should also work,
RUNH CMD /C "C:\program files\D-tools\Daemon.exe" -mount 0"," X:\filename.fil
If <X:\filename> has any spaces it should also be enclosed with quotes.
If you place the whole command in quotes EG.
RUN "C:\program files\D-tools\Daemon.exe -mount 0, X:\filename.fil"
It will be treated as though the whole line = <Path\FileToRun>
meaning "C:\program files\D-tools\Daemon.exe -mount 0, X:\" would be treated as the path and "filename.fil" as the file to run.
If there is a question as to how the command line is being sent, test it using "Info" and what's in the dialog is usually what CMD will see.
Hope this helps |
|
| Back to top |
|
 |
|