Batch file help



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?

TIA
.



Relevant Pages

  • Re: Win2K Dos vs. Win98 Dos
    ... I suppose this happened because of differences in the underlying DOS between Win2K and Win98. ... Can someone tell me how I shall rewrite the batch file to make it work with Win2K DOS? ... The commands used in the batch file are simple ones like COPY, DELETE, RENAME, and FOR, which must work in the same way regardless of the DOS. ...
    (microsoft.public.win2000.general)
  • Re: Printer startup script in XP
    ... printers were isntalled w/o a problem. ... >> Win2k server for Win2k clients, however when I attempt to run the startup ... >> script for WinXP clients I am unsuccessfull. ... >> Create a batch file containing lines of the following ...
    (microsoft.public.win2000.active_directory)
  • RE: Reading System Variable....
    ... the system date is not a system environment variable on WinXP and Win2k ... you can obtain it with the date /t command. ... "GeorgeSmith" wrote: ... > How to read the system date in a batch file? ...
    (microsoft.public.windows.server.general)
  • Printer Starup Script successfull for Win2k, but not for XP
    ... Win2k server for Win2k clients, however when I attempt to run the startup ... script for WinXP clients I am unsuccessfull. ... Create a batch file containing lines of the following ...
    (microsoft.public.windows.server.scripting)
  • Re: Short (DOS) names for paths in environment variables
    ... if %HOMEPATH% is "\Documents and Settings\pasco" ... then what yields "\DOCUME~1\PASCO"? ... I am not sure whether you need this to work under Win2k or XP. ... Put the call to your DOS program in a batch file ...
    (microsoft.public.win2000.cmdprompt.admin)

Loading