|09 May 2012||#2|
| || |
So you want to delete the contents of a folder without deleting the folder itself? Would that also include sub-folders within that folder?
Simply enter cd <path to directory> at the prompt to make the required directory the target of the next command. Then, after verification that this is the correct directory and that you do indeed want to remove its contents, enter del *.* at the prompt. This should delete its contents, but not the directory itself. Please note that content cannot be easily recovered, which is why I asked you to verify the location first.
|My System Specs|
|Similar help and support threads for2: Deleting a directory structure without deleting the name of the root|
|Deleting Former RAID Structure on HDD||Hardware & Devices|
|Robocopy /MOV command copying but not deleting from source directory||General Discussion|
|Robocopy? Copy Directory Structure 1 level||General Discussion|
|Need to return to the default Windows 7 directory structure||General Discussion|
|Media players and directory structure||Music, Pictures & Video|
|Recover Files after deleting partition with folder structure?||General Discussion|
|Deleting a playlist without deleting the WMP database||Sound & Audio|
|Our Sites ||Site Links ||About Us ||Find Us |
© Designer Media Ltd
All times are GMT -5. The time now is 04:44 PM.