killalot57 -> Another Batch Command Question (9/30/2008 11:00:46 PM)
|
Hello, I'm making a batch command to delete all the files in my "recent files" folder. At first I set it up so that it would create a .txt file in there, then delete all the files in there, so that I wouldn't get an error message when I ran it. Here is what I had... @echo off echo.>"C:\Documents and Settings\James\Recent\"file.txt del /q "C:\Documents and Settings\James\Recent\*.*" ECHO Arg, I'm getting Tired Of Making These! ECHO. PAUSE What I'd like to do is have a command that will only tell it to delete the files there is one exist. So I tried the following command line in a different batch command. @echo off if exist "C:\Documents and Settings\James\Recent\*.*" del /q "C:\Documents and Settings\James\Recent\*.*" echo hi everyone echo. PAUSE I get most of my command lines from friends "sithtracy" and random internet people, so I can't really figure out what to change myself. I tried a few variations but I haven't been getting anywhere...
|
|
|
|