Re: Batch file help
- From: "Jon" <Email_Address@xxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 21 Nov 2006 19:34:12 -0000
There is plenty of evidence to suggest that "MSBhhNish" <MSBhhNish@xxxxxxxxxx> wrote the following in news:45630682.5080602@xxxxxxxxxxxxx
I have a batch file that I wrote on a Win2K system where
I have something like:
copy file1.txt f:\file2.txt > NUL:
On win2K if I have an error, such as not enough room on f:,
the error message is displayed on the Console window. If
no error, the "1 file(s) copied" message goes out to null.
However on WinXP, both the stdout and stderr message goes
to NUL:. Is there a way to write the copy command so
that it emulates Win2K?
I don't get that behaviour with WinXP - error output goes to the console window. So I would reexamine the exact command you are using - it may be executing without any error messages (but not necessarily what you thought you were executing), or there may some other error at another position in your batch file, such that the command never executes at all. Turning echo on or putting a few 'pause' statements in the batch file might help in troubleshooting.
--
Jon
.
- References:
- Batch file help
- From: MSBhhNish
- Re: Batch file help
- From: Pegasus \(MVP\)
- Re: Batch file help
- From: MSBhhNish
- Re: Batch file help
- From: Pegasus \(MVP\)
- Re: Batch file help
- From: MSBhhNish
- Batch file help
- Prev by Date: KB890380 MSR Tool
- Next by Date: Re: [OT] Ping No Stop
- Previous by thread: Re: Batch file help
- Next by thread: Mail Daemon
- Index(es):
Relevant Pages
|