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.
.bat - deletes content of drive
Name: Bart slot Date: February 23, 2009 at 01:22:39 Pacific OS: Windows XP CPU/Ram: intel Xeon, 32 GB ram Product: Intel / Xeon Subcategory: General
Comment:
Hello,
I want a batch file that deletes the full content of a directory. The directory is called "T" and is used for temp purposes. Every night this batch file has to delete the content of this drive, T, including sub directory's.
This is what i searched for on the net:
@echo off del /q /s T:/ for /d %%a in (T:/) do rd /s /q "%%a)
But it is not working... can anyone please help me?
Name: paulsep Date: February 23, 2009 at 02:57:42 Pacific
Reply:
Try this:
@echo off rem change the driveletter for your needs c: rem change the directoy for your needs cd \temp del /S /Q *.* for /d %%a in (*) do rd /s /q "%%a
Please send a reply, if you solved the problem !!!
Summary: I can't access the contents of e drive in my computer.... i am using xp sp2.... and there are many files which are of great importance, and I can't loose them..... Whenever I try to open a folder ...
Summary: Hmmm ok perhaps i didn't say that correctly. I'll try again... As i understand it a resource (say a share for example) will not be added to My Network Places until the user has browsed to that resourc...