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 file to delete empty folders
Name: malloy Date: November 30, 2007 at 15:29:53 Pacific OS: win xp sp2 CPU/Ram: Intel Xeon 2.80 GHz 3 GB Product: Dell
Comment:
We have a directory c:\temp that act as storage for a directory monitor for printing before it moves files along. Within c:\temp a unique folder name is created along with a inbound and outbound folder within that for each print job that is sent. After processing the print job it leaves all these folders. I need a batch file that will delete all the folders and subfolders in c:\temp as long as they are empty of files. We are piling up thousands of these folders a day and deleting them manually is becoming tiresome.
Summary: Hey! I need batch file that removes all subdirectories from directory. Example: I have directory on my desktop named N152. Its including directorys GT36GS6, GJ36KF and GK2OR5F. I want batch file to e...
Summary: Hi I am trying to get a batch file to delete files which has dates older than 7 days so far I have @ECHO OFF CLS FOR /R C:\User_share %%FILE IN (*.*) DO ( ECHO starting if IF(0 == (ISDATE %%~zFILE bef...