forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Proper use of a, Comma

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Mrvw67
Newbie


Joined: 28 Apr 2005
Posts: 3

PostPosted: Thu Apr 28, 2005 2:29 pm    Post subject: Proper use of a, Comma Reply with quote

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
View user's profile Send private message
Hooligan
VDS Developer
VDS Developer


Joined: 28 Oct 2003
Posts: 480
Location: California

PostPosted: Thu Apr 28, 2005 7:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
Mrvw67
Newbie


Joined: 28 Apr 2005
Posts: 3

PostPosted: Thu Apr 28, 2005 8:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hooligan
VDS Developer
VDS Developer


Joined: 28 Oct 2003
Posts: 480
Location: California

PostPosted: Thu Apr 28, 2005 8:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
Mrvw67
Newbie


Joined: 28 Apr 2005
Posts: 3

PostPosted: Thu Apr 28, 2005 8:41 pm    Post subject: Reply with quote

Awesome! Very Happy 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
View user's profile Send private message
Hooligan
VDS Developer
VDS Developer


Joined: 28 Oct 2003
Posts: 480
Location: California

PostPosted: Thu Apr 28, 2005 8:44 pm    Post subject: Reply with quote

Certainly!
Take 3 beers and call in the morning... Wink

Hooligan

_________________
Hooligan

Why be normal?
Back to top
View user's profile Send private message
Aslan
Valued Contributor
Valued Contributor


Joined: 31 May 2001
Posts: 589
Location: Memphis, TN USA

PostPosted: Sun May 01, 2005 7:44 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
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 can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group