|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|
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd
All times are GMT -5. The time now is 02:30 PM.