inuyasha Posted December 10, 2007 Share Posted December 10, 2007 how do you delete file hidden ? Link to comment Share on other sites More sharing options...
weaponx Posted December 10, 2007 Share Posted December 10, 2007 I don't think hidden files delete any differently then other files. FileDelete ( "path" ) Link to comment Share on other sites More sharing options...
DjDeep00 Posted December 10, 2007 Share Posted December 10, 2007 @inuyasha...If you are looking to delete only the hidden files then do this... 1. Use FileFindFirstFile & FileFindNextFile functions...to get all the names of the files in a certain folder. 2. Use FileGetAttrib to get only the files that have the "hidden" attribute. 3. Like Weaponx stated...then use FileDelete to delete only the hidden files. I dont know why you would do this but please ignore this if this is not what u wanted todo. Link to comment Share on other sites More sharing options...
Hermano Posted December 10, 2007 Share Posted December 10, 2007 (edited) sometimes the stystem does not allow you to delete a hidden file unless you reset its attribute (equivalent of attrib -h * in dos). Edited December 10, 2007 by Hermano ------- CARPE DIEM Display_Library_ Skype erase history Win10VirtualDesktopManager Link to comment Share on other sites More sharing options...
Arm Posted March 23, 2011 Share Posted March 23, 2011 you can make use of Dos comment through AutoIt for example "run(@COMSPEC & " /c del /A:R /A:H $Filenamewithpath)" ------------------------------------------------------"You are never a loser,until you quit trying"------------------------------------------------------ Link to comment Share on other sites More sharing options...
saywell Posted March 23, 2011 Share Posted March 23, 2011 you can make use of Dos comment through AutoIt for example "run(@COMSPEC & " /c del /A:R /A:H $Filenamewithpath)"Or you can use the native AutoIt command FileSetAttrib .William Link to comment Share on other sites More sharing options...
GianAutoitprogrammer Posted April 16, 2011 Share Posted April 16, 2011 To delete hidden or system files try this code: if fileexists("C:\blah.exe") then Filesetattrib("C:\blah.exe","-RASHOT) FileDelete("C:\blah.exe") Msgbox(64, "DONE", "DONE") else Msgbox(16, "ERROR", "FAILED") endif That should help... 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