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
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
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
Summary: What I'm trying to do is create a batch file command that (cd) changes the directory for which it performes a task without knowing the path. example: "cd c:\documents and settings\%allusers%" Then aut...
Summary: Hi, I need some help with the batch file commands; I have an 'invoice' directory which will have files with below names. IMPORT_INVOICE_FILEfsbc.20080108.0500368 IMPORT_INVOICE_FILEcount.sbc.2008...
Summary: Hi M2, @echo off for /f "tokens=*" %%I in (IPlist) do call :pinger %%I goto :eof :pinger echo %TIME% >> pingLOG ping %1 >> pingLOG :: DONE I am using the above batch file command to ping list of 60ser...