Windows 7 "> NUL" in batch file no longer works..

  • Thread starter Thread starter blinkyjesus
  • Start date Start date
B

blinkyjesus

Guest
Want to use a simple command in a batch file: echo y| net use z: /delete > nul

It should delete the z: drive mapping if it exists and *not* show the results of the command to the user. This was the case in XP and earlier. Now when i use the command it *does* display the results:

The network connection could not be found.

More help is available by typing NET HELPMSG 2250.


I've tested on Server 2008 and Windows 7. Same result. Thoughts?

More...
 
Back
Top