M
Mark
Hi Allen...
Another stumper, though not directly related to asp.net.
When I run the command through MyDll2 with
appName = "cmd.exe"
commandLine = "/S /C 2>&1 > C:\run.log MyCmd.exe -args=1..."
it works and output is put in the log file.
If I put quotes around the command I really want to run (i.e.
appName = "cmd.exe"
commandLine = "/S /C 2>&1 > C:\run.log \"MyCmd.exe -args=1...\""
)
the log file is created but no output is put in it.
If I run the whole thing from the prompt (i.e.
cmd /s /c 2>&1 > C:\run.log "MyCmd.exe -args=1..."
)
the whole thing runs and puts the output in the log file.
Why would putting quotes around the ultimate command and args cause it not
to work in MyDll2?
I started down this route because I wanted to compound a few commands in
what MyDll2 was running. Some of the things I want to run are baked .exe's,
so I was going to do the following:
cmd /s /c 2>&1 > C:\Run.log "echo Run by John & date /t & time /t &
MyCmd.exe -args=1..."
That's when I discovered that quoting the ultimate execution command stopped
the output and probably the execution when run through MyDll2. Works fine
from the prompt though.
THanks
Mark
Another stumper, though not directly related to asp.net.
When I run the command through MyDll2 with
appName = "cmd.exe"
commandLine = "/S /C 2>&1 > C:\run.log MyCmd.exe -args=1..."
it works and output is put in the log file.
If I put quotes around the command I really want to run (i.e.
appName = "cmd.exe"
commandLine = "/S /C 2>&1 > C:\run.log \"MyCmd.exe -args=1...\""
)
the log file is created but no output is put in it.
If I run the whole thing from the prompt (i.e.
cmd /s /c 2>&1 > C:\run.log "MyCmd.exe -args=1..."
)
the whole thing runs and puts the output in the log file.
Why would putting quotes around the ultimate command and args cause it not
to work in MyDll2?
I started down this route because I wanted to compound a few commands in
what MyDll2 was running. Some of the things I want to run are baked .exe's,
so I was going to do the following:
cmd /s /c 2>&1 > C:\Run.log "echo Run by John & date /t & time /t &
MyCmd.exe -args=1..."
That's when I discovered that quoting the ultimate execution command stopped
the output and probably the execution when run through MyDll2. Works fine
from the prompt though.
THanks
Mark