Re: Batch file help




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

.



Relevant Pages

  • Re: Multiboot 2000 and XP
    ... It would have been easy enough to fix this from the Windows XP installation, you can just move the Windows 2000 SYSTEM files as in the article. ... You might still be able to do it but there is no saying what exactly the repair utility might have done to the files in question. ... I am getting the same error message. ... In a perfect world I want to be able to repair the Win2K multiboot problems between XP and Win2K. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: I dont really understand windows security...I need help
    ... thanks for the help, the answers are yes, I can view html, but haven't tried ... > It sounds like you are executing the aspx page because that doesn't sound ... > iis or windows permissions. ... > What is the exact error message and details. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Paste not working in With statement - do I have too many With
    ... have a button from a sheet called "Main Menu" that takes me to the "Member ID ... Paste is not executed (and there is no error message) when "Member ID Input ... "Dave Peterson" wrote: ... below is not executing properly in my code. ...
    (microsoft.public.excel.programming)
  • Re: I dont really understand windows security...I need help
    ... > the file system, I clicked fix, and ever since IE won't launch off the ... >> It sounds like you are executing the aspx page because that doesn't ... >> iis or windows permissions. ... >> What is the exact error message and details. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: mail merge: printing multiple pages, or field calculation error
    ... I get the feeling she first tried executing the merge to the printer, ... This means one has to track down the cause of the error message. ... Link the new document that appears to the Excel file, ... This reply is posted in the Newsgroup; please post any follow question or reply ...
    (microsoft.public.word.docmanagement)