• Welcome to Overclockers Forums! Join us to reply in threads, receive reduced ads, and to customize your site experience!

help with batch scripts

Overclockers is supported by our readers. When you click a link to make a purchase, we may earn a commission. Learn More.

anvil82

Member
Joined
Apr 21, 2003
Location
New Jersey
How do I suppress batch errors?

Like if I do

rmdir blech

if blech does not exist it says:

"The system cannot find the file specified."

I tried

rmdir blech > nul

but that didn't work.

What can I do?

I just want the echos to be displayed in the comand prompt, so it tells the user what it is doing, but not the commands and errors if there are any.

Like:

Mapping Drives
Cleaning up Temporary Files
Connecting to Printers



Thanks!
 
so use @echo off and @echo on @echo Hi Now installing blah blah btw you can keep switching between the modes of "on" and "off"
 
Back