Computing.Net > Forums > Programming > batch del command

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.

batch del command

Reply to Message Icon

Name: JimW
Date: August 20, 2002 at 07:27:28 Pacific
Comment:

After receiving so much help so far, I must continue to learn more.
In my batch file, one of the lines is:
del "D:\Backup\Test\*.*" /y/g
When I run it, I get the reply that /y is an invalid switch. I want it to delete those files within "test" folder without asking me to type "y" or "n" and hit enter. Is there a way for it to happen by itself? Thanks
JimW



Sponsored Link
Ads by Google

Response Number 1
Name: DaveStL
Date: August 20, 2002 at 14:40:59 Pacific
Reply:

What are the /y and /g switches supposed to do? On my version of DOS, there is a /q switch (quiet) which allows the delete without asking confirmation when using wildcards. What happens when you don't use the switches?


0

Response Number 2
Name: JimW
Date: August 20, 2002 at 15:02:09 Pacific
Reply:

DaveStL,
I tried /y (yes) and /q (quiet)together and separate and both cause an invalid switch message or line.
If I do not use a /y or /q, a screen opens and asks for a reply....y or n to the delete operation. If I type y and enter, the delete operation is complete. This does not allow me to have this bat file working by itself in my task scheduler, thus, the reason for my request for the propr switch. Olease try again Thanks.
JimW


0

Response Number 3
Name: Cerj (by cerj)
Date: August 21, 2002 at 03:31:10 Pacific
Reply:

del D:\Backup\Test\*.* /q


0

Response Number 4
Name: JimW
Date: August 21, 2002 at 04:52:42 Pacific
Reply:

thanks all. Great help
JimW


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 Programming Forum Home


Sponsored links

Ads by Google


Results for: batch del command

batch file command? www.computing.net/answers/programming/batch-file-command/13574.html

Batch file commands help ! www.computing.net/answers/programming/batch-file-commands-help-/16201.html

Simple Batch File command help www.computing.net/answers/programming/simple-batch-file-command-help/16568.html