starting an external program with a command line
sendkeys appears to be for sending keystrokes not a
command which consits of text.
-----Original Message-----
Look in the help at SendKeys
--
Regards,
Tom Ogilvy
"Jonathan" wrote in message
...
have a command line to start a program as follows...
Program = "C:\Program Files\Program\program.exe"
but want it to send an initial command initially. its
not a file that would execute the program (i.e.,
file.doc
for say ms word) but a command you would enter in the
command line box of the program
once open i would type the comand inp filename
have tried
Program = "C:\Program Files\Program\program.exe inp
filename" but does not work.
any way to do a seperate line for the command
i.e., Program = "C:\Program Files\Program\program.exe"
and then a seperate line "inp filename" or something
like that?
.
|