Brian Gibson
02-05-2004, 04:37 PM
This does not redirect the outpout to the log file...
START CMD /C essmsh CSR.build.outline.CSRCALC.mxl>CSRCALC.LOG
What part is wrong? Can it be done?
Thanks.
Mark V
02-05-2004, 05:38 PM
In microsoft.public.win2000.cmdprompt.admin Brian Gibson wrote:
> This does not redirect the outpout to the log file...
>
> START CMD /C essmsh CSR.build.outline.CSRCALC.mxl>CSRCALC.LOG
>
> What part is wrong? Can it be done?
Don't know "essmsh" but try using a Space delimiter.
(and I always find it wise to just put in the quotes for "Title")
START "" CMD.exe /C essmsh CSR.build.outline.CSRCALC.mxl >CSRCALC.LOG
Mark V
02-05-2004, 05:38 PM
In microsoft.public.win2000.cmdprompt.admin Brian Gibson wrote:
> This does not redirect the outpout to the log file...
>
> START CMD /C essmsh CSR.build.outline.CSRCALC.mxl>CSRCALC.LOG
>
> What part is wrong? Can it be done?
Don't know "essmsh" but try using a Space delimiter.
(and I always find it wise to just put in the quotes for "Title")
START "" CMD.exe /C essmsh CSR.build.outline.CSRCALC.mxl >CSRCALC.LOG
Paul R. Sadowski
02-05-2004, 05:52 PM
"Brian Gibson" <bggibson@hotmail.com> wrote in message
news:eBeCVaA7DHA.2472@TK2MSFTNGP10.phx.gbl...
> This does not redirect the outpout to the log file...
>
> START CMD /C essmsh CSR.build.outline.CSRCALC.mxl>CSRCALC.LOG
>
> What part is wrong?
Nothing. Sort of. You are redirecting the output of the start command to
CSRCALC.LOG which you'll find as a zero byte file in the current directory.
There's no output from the start command so nothing in the file.
> Can it be done?
Off the top of my head use a batch file with the redirection in the batch.
:: MyBat.cmd
essmsh CSR.build.outline.CSRCALC.mxl>CSRCALC.LOG
Then
start cmd /c MyBat.cmd
or such...
Paul R. Sadowski
02-05-2004, 05:52 PM
"Brian Gibson" <bggibson@hotmail.com> wrote in message
news:eBeCVaA7DHA.2472@TK2MSFTNGP10.phx.gbl...
> This does not redirect the outpout to the log file...
>
> START CMD /C essmsh CSR.build.outline.CSRCALC.mxl>CSRCALC.LOG
>
> What part is wrong?
Nothing. Sort of. You are redirecting the output of the start command to
CSRCALC.LOG which you'll find as a zero byte file in the current directory.
There's no output from the start command so nothing in the file.
> Can it be done?
Off the top of my head use a batch file with the redirection in the batch.
:: MyBat.cmd
essmsh CSR.build.outline.CSRCALC.mxl>CSRCALC.LOG
Then
start cmd /c MyBat.cmd
or such...
Tom Lavedas
02-05-2004, 07:34 PM
The use of START with CMD makes no sense to me. What are
you really trying to do?
Does this not work?
essmsh CSR.build.outline.CSRCALC.mxl>CSRCALC.LOG
If it is because essmsh launches a new thread, outside of
the current console window, adding the START and CMD will
do nothing to contain it - PLUS, this almost certainly
means its output cannot be redirected in the first place.
Tom Lavedas
===========
>-----Original Message-----
>This does not redirect the outpout to the log file...
>
>START CMD /C essmsh
CSR.build.outline.CSRCALC.mxl>CSRCALC.LOG
>
>What part is wrong? Can it be done?
>
>Thanks.
Tom Lavedas
02-05-2004, 07:34 PM
The use of START with CMD makes no sense to me. What are
you really trying to do?
Does this not work?
essmsh CSR.build.outline.CSRCALC.mxl>CSRCALC.LOG
If it is because essmsh launches a new thread, outside of
the current console window, adding the START and CMD will
do nothing to contain it - PLUS, this almost certainly
means its output cannot be redirected in the first place.
Tom Lavedas
===========
>-----Original Message-----
>This does not redirect the outpout to the log file...
>
>START CMD /C essmsh
CSR.build.outline.CSRCALC.mxl>CSRCALC.LOG
>
>What part is wrong? Can it be done?
>
>Thanks.
Matthias Tacke
02-05-2004, 11:08 PM
"Brian Gibson" wrote:
>This does not redirect the outpout to the log file...
>
>START CMD /C essmsh CSR.build.outline.CSRCALC.mxl>CSRCALC.LOG
>
>What part is wrong? Can it be done?
>
I don't know if the other tips have been succesfull,
but this one worked for me:
START CMD /C essmsh CSR.build.outline.CSRCALC.mxl^>CSRCALC.LOG
The redirection needs to be escaped with a ^
to be delayed into the started cmd.
HTH
--
Greetings
Matthias________________________________________
For help on nt commands enter in a cmd window:
W2K>HH windows.chm::ntcmds.htm XP>HH ntcmds.chm
Matthias Tacke
02-05-2004, 11:08 PM
"Brian Gibson" wrote:
>This does not redirect the outpout to the log file...
>
>START CMD /C essmsh CSR.build.outline.CSRCALC.mxl>CSRCALC.LOG
>
>What part is wrong? Can it be done?
>
I don't know if the other tips have been succesfull,
but this one worked for me:
START CMD /C essmsh CSR.build.outline.CSRCALC.mxl^>CSRCALC.LOG
The redirection needs to be escaped with a ^
to be delayed into the started cmd.
HTH
--
Greetings
Matthias________________________________________
For help on nt commands enter in a cmd window:
W2K>HH windows.chm::ntcmds.htm XP>HH ntcmds.chm