Jump to content

run whit dos program and attributes


Recommended Posts

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
Link to comment
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 *

Link to comment
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:

Link to comment
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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...