michaelslamet Posted January 9, 2013 Posted January 9, 2013 Hi Fellow members, I have a file named thumbs.db that has a attribute "system" and "hidden". FileDelete can't delete it. Is there any way or special function that can delete it? Thanks
michaelslamet Posted January 9, 2013 Author Posted January 9, 2013 FileMove it to another filename and then delete the new filename seems do it, is that a correct way to do it?
Xenobiologist Posted January 9, 2013 Posted January 9, 2013 If you are able to delete manually, then Autoit should also be able to delete it with Filedelete. From the help file :Some file attributes can make the deletion impossible. Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times
AZJIO Posted January 9, 2013 Posted January 9, 2013 (edited) $file = 'C:\file' If FileSetAttrib($file, "-RS") And FileDelete($file) Then MsgBox(4096, "Yes", "Removed") Edited January 9, 2013 by AZJIO My other projects or all
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