I want to clear all content inside the folder, folder may contain another folder, text files etc...
How can i achive this by VB scripting?
Easiest way is to just delete the folder and recreate it: Const yourFolder = "some\folder\path" With CreateObject("Scripting.FileSystemObject") .DeleteFolder(yourFolder) .CreateFolder(yourFolder) End With
Yes (14) | ![]() | |
No (14) | ![]() | |
I don't know (15) | ![]() |