Borje Posted May 3, 2011 Share 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 Link to comment Share on other sites More sharing options...
jaberwacky Posted May 3, 2011 Share 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? Link to comment Share on other sites More sharing options...
Borje Posted May 3, 2011 Author Share Posted May 3, 2011 I have check all attributes but it is not matter. Link to comment Share on other sites More sharing options...
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