Borje 10 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 Share this post Link to post Share on other sites
jaberwacky 327 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? Share this post Link to post Share on other sites
Borje 10 Posted May 3, 2011 I have check all attributes but it is not matter. Share this post Link to post Share on other sites