Computing.Net > Forums > Disk Operating System > how to skip question while deleting file

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.

how to skip question while deleting file

Reply to Message Icon

Name: Yourek
Date: December 18, 2001 at 08:08:14 Pacific
Comment:

I have problem, b/c I don't know, how to skip this stupid question while deleting or formating hdd. I know, that this is "Dangerous", but i'm curious.
example:
del c:\temp\file.txt
and then the question pop up:
Are you sure you want delete this file?
HOW TO SKIP THAT?
thanx



Sponsored Link
Ads by Google

Response Number 1
Name: clever
Date: December 18, 2001 at 09:34:16 Pacific
Reply:

What version of Dos are you using? If you're using Win95 or 98 you shouldn't get a warning message in Dos unless you're using wildcards to delete a whole batch of files, as in

del *.txt

which will ask for a confirmation. Deleting single files, one at a time, should not generate that message.

Don't know about W2K or XP though ...


0

Response Number 2
Name:
Date: December 18, 2001 at 14:25:13 Pacific
Reply:

And in earler versions you have to go with the flow!


0

Response Number 3
Name: sekirt
Date: December 18, 2001 at 19:32:06 Pacific
Reply:

I am using Win98 and don't get those "safety net" questions.

But, I recall that some DOS commands had a switch: /Y that would eliminate the question.

del c:\temp\file.txt /Y


0

Response Number 4
Name: Laurence
Date: December 21, 2001 at 08:25:33 Pacific

Response Number 5
Name: Larry
Date: December 22, 2001 at 19:01:51 Pacific
Reply:

in batch:

echo y>y.res
del *.txt
The y.res file answers the question auto-like


0

Related Posts

See More



Response Number 6
Name: tim
Date: December 26, 2001 at 06:45:38 Pacific
Reply:

hey larry, can you be more specific, i don't quite understand...so a "y" is going to be echoed into a file called y.res? how does this automate the answering of the system-asked question?


0

Sponsored Link
Ads by Google
Reply to Message Icon






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: how to skip question while deleting file

HOW TO SKIP QUESTION WHILE DELETING FILE www.computing.net/answers/dos/how-to-skip-question-while-deleting-file/8619.html

How to burn Win 98 cabs files www.computing.net/answers/dos/how-to-burn-win-98-cabs-files/13273.html

How to create LOG in BAT file www.computing.net/answers/dos/how-to-create-log-in-bat-file/12481.html