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.
Delete subfolders in batch file
Name: cweatherford Date: June 4, 2005 at 09:28:18 Pacific OS: Windows XP SP1 CPU/Ram: N/A
Comment:
Hey, I think this one should be easier than it is. I want to create a batch file that users can launch from any computer (winxp or win2k) to delete all the subfolders in a network directory. I have an X: drive mapped to a shared folder on every computer and there is a Request folder inside of this. I would like to be able to delete all the subfolders and files out of Z:\Request without deleting the request folder itself. I tried to run the following: del z:\request\*.* /s /q rd z:\request /s but this deletes the request folder too. The users do not have permission to recreate the request folder on the root of the Z: drive.
Summary: I have created a batch file that connects to a server and executes query in an sql file..In sql im deleting some records from the table..even after i delete the records,the batch windows is still open...