Borje Posted May 3, 2011 Posted May 3, 2011 Hello Why this not delete files inside folders ? Deleting folders is ok.. Code: DeleteFolderContent("i:\*.*") Func DeleteFolderContent($FolderSpec) Local $fso $fso = ObjCreate("Scripting.FileSystemObject") ;Delete all files in folder $fso.DeleteFile($FolderSpec) ;Delete all folders ;$fso.DeleteFolder($FolderSpec) EndFunc
jaberwacky Posted May 3, 2011 Posted May 3, 2011 What are the file attributes or does it not matter? Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now