PDA

View Full Version : DOS Commands


Dingbat
07-16-2008, 05:07 PM
Hi Guy's,

A stupid question. I am trying to setup a small batch file with the delete command as the first line. Like del "A:\*.*" That works Ok but what I would like is for the file to run without asking to confirm the delete. In other words is there a switch that will do that.

Such a long time since I used Dos I can't remember, getting too old.:o

Apostropartheid
07-16-2008, 05:57 PM
Use the /Q flag. For any DOS command, type in command /? for a list of flags and a description.

Jeroentje
07-16-2008, 06:34 PM
Try this

del /f /s /q *.* (assuming your in Windows command prompt)

It'll delete without confirmation. If it's your temporary folder in XP or Vista, do this:

cd %temp%
del /f /s /q *.*
exit.

Note: Test this out first. You don't wanna have important stuff deleted. I cannot say this enough!

strokemymouse
07-16-2008, 07:10 PM
Try this

del /f /s /q *.* (assuming your in Windows command prompt)

It'll delete without confirmation. If it's your temporary folder in XP or Vista, do this:

cd %temp%
del /f /s /q *.*
exit.

Note: Test this out first. You don't wanna have important stuff deleted. I cannot say this enough!


This one works :) just tested it.

Dingbat
07-16-2008, 08:44 PM
Thanks guy's. I have tried the switchws and they do just what the doctor ordered.