ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Delete all files within a folder (incl subfolders) (https://www.excelbanter.com/excel-programming/312080-delete-all-files-within-folder-incl-subfolders.html)

Steph[_3_]

Delete all files within a folder (incl subfolders)
 
Hi, I found the following code to delete files from a fodler:

Kill "C:\Delete\*.*"

Is there a way to also delete all files from all subfolders contained within
the Delete folder?



Steph[_3_]

Delete all files within a folder (incl subfolders)
 
Never mind. Used the same logic that was provided to me by kkknie in an
earlier post "Copy a file into multiple sub-folders". Thanks!

"Steph" wrote in message
...
Hi, I found the following code to delete files from a fodler:

Kill "C:\Delete\*.*"

Is there a way to also delete all files from all subfolders contained

within
the Delete folder?






All times are GMT +1. The time now is 07:33 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com