Sign in to follow this  
Followers 0
lightdemon

run whit dos program and attributes

7 posts in this topic

#1 ·  Posted (edited)

to begin you excuse my English,

i want to start a dos program and many atribute, the syntax in the help is:

RunWait (@ComSpec & " /c " & 'commandName')

then i must do:

RunWait (@ComSpec & " /c " & 'c:\program\pippo.exe -a')

but it doesn't work!!!

Now i haw 2 questions:

1) how I must do?

2) what is "/c" ?

thanks

Edited by lightdemon

Share this post


Link to post
Share on other sites



up

Share this post


Link to post
Share on other sites

RunWait (@ComSpec & " /c " & 'c:\program\pippo.exe -a')
looks good, except the path to the file. Is it really c:\program ??

but it doesn't work!!!

What is the error?

Does this work for you?

$notepad = @WindowsDir & "\notepad.exe c:\test.txt][ÝÂ[ØZ]
ÛÛTÜXÈ  [È ][ÝÈØÈ  ][ÝÈ  [È ÌÍÛÝY
B

__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites

to begin you excuse my English,

i want to start a dos program and many atribute, the syntax in the help is:

RunWait (@ComSpec & " /c " & 'commandName')

then i must do:

RunWait (@ComSpec & " /c " & 'c:\program\pippo.exe -a')

but it doesn't work!!!

Now i haw 2 questions:

1) how I must do?

2) what is "/c" ?

thanks

1. Syntax looks ok so will need more information like what the prompt shows of the error produced. Replace the /c with /k so the prompt remains open to see the error produced.

2. /c is to tell comspec to run in command line mode and then exit. /k is to tell comspec to run in command line mode and remain open.

You can do cmd /? at a command prompt to find out information about switches used with comspec.

:rolleyes:

Share this post


Link to post
Share on other sites

thanks!!!!!!

using the "/k" I have seen the error, 'program' was an example, the real directory is:

c:\varie attacco\,

the problem is "varie attacco", I have to write "variea~1".

thanks to everybody

Share this post


Link to post
Share on other sites

RunWait (@ComSpec & ' /c "c:\varie attacco\pippo.exe][ÝÈXIÌÎNÊ

Use single quotes on the outside of the string and use double quotes to protect spaces in the path.

:rolleyes:

Share this post


Link to post
Share on other sites

to begin you excuse my English,

i want to start a dos program and many atribute, the syntax in the help is:

RunWait (@ComSpec & " /c " & 'commandName')

then i must do:

RunWait (@ComSpec & " /c " & 'c:\program\pippo.exe -a')

but it doesn't work!!!

Now i haw 2 questions:

1) how I must do?

2) what is "/c" ?

thanks

If you just want to run 'c:\program\pippo.exe' then use the following

RunWait("c:\program\pippo.exe -a")

IF your program location contains any space place in side '"'

example

RunWait('"'&"c:\program files\pippo.exe"&'"'&" -a")

this normally dose the trick for me.

best of luck

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0