hi guys
does any one have any vb code that will the the folder contents of a folder on a local machine but leave the root folder in place
mark
hi guys
does any one have any vb code that will the the folder contents of a folder on a local machine but leave the root folder in place
mark
deletes folders and files too
edit: be careful where you run this, it deletes everthing below!Code:Dim fso, fldr Set fso = CreateObject("Scripting.FilesystemObject") Set fldr = fso.GetFolder("c:\test_area") 'delete subfolders For Each subf In fldr.SubFolders subf.Delete True Next 'delete subfiles For Each fsofile In fldr.Files fsofile.Delete True Next
Last edited by box_l; 30th April 2010 at 11:02 PM.
There are currently 1 users browsing this thread. (0 members and 1 guests)