Computing.Net > Forums > Disk Operating System > DOS Batch stuff

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

DOS Batch stuff

Reply to Message Icon

Name: Brian
Date: November 12, 1998 at 07:32:19 Pacific
Comment:

Ok, it has been a while since I needed to know this but in a batch file, what is the switch to ignore the Yes/No prompt. Example...I want to del *.* and have the batch ignore having to say yes to continue?



Sponsored Link
Ads by Google

Response Number 1
Name: World Library
Date: November 12, 1998 at 17:45:21 Pacific
Reply:

Try the > nul command.

Example:
del stuff.doc >nul

The default "Are you sure stuff goes to nul"

echo y | del c:\stuff.doc also works but what is happening is displayed . IE: y|del ect.

The > nul command takes care of a lot of default messages being displayed.

Hope this is of some help.

World Library


0

Response Number 2
Name: Bernhard Zengerle
Date: December 6, 1998 at 04:21:05 Pacific
Reply:

use the following command:

del /Q

suppresses the YES/NO box

hint: I detected this command options easily by calling the related help function (cmd-line: help del)


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: DOS Batch stuff

Dos batch www.computing.net/answers/dos/dos-batch/14574.html

DOS Batch File www.computing.net/answers/dos/dos-batch-file/8207.html

Dos Batch File Commands www.computing.net/answers/dos/dos-batch-file-commands/11921.html