lifesux Posted September 15, 2011 Share Posted September 15, 2011 How can I delete Temporary Internet Files folder contents ? I used that code but its not working. Its trying to delete all file not contents, so windows dont let it. DirRemove(@UserProfileDir & "\Local Settings\Temporary Internet Files\ ",1) Please help me how can i do it ? Link to comment Share on other sites More sharing options...
Beege Posted September 15, 2011 Share Posted September 15, 2011 (edited) What is & for? You have half the code commented out making it only DirRemove(@UserProfileDir & Edited September 15, 2011 by Beege Assembly Code: fasmg . fasm . BmpSearch . Au3 Syntax Highlighter . Bounce Multithreading Example . IDispatchASMUDFs: Explorer Frame . ITaskBarList . Scrolling Line Graph . Tray Icon Bar Graph . Explorer Listview . Wiimote . WinSnap . Flicker Free Labels . iTunesPrograms: Ftp Explorer . Snipster . Network Meter . Resistance Calculator Link to comment Share on other sites More sharing options...
lifesux Posted September 15, 2011 Author Share Posted September 15, 2011 sorry code : DirRemove(@UserProfileDir & "\Local Settings\Temporary Internet Files\ ",1) Link to comment Share on other sites More sharing options...
JohnOne Posted September 15, 2011 Share Posted September 15, 2011 DirRemove(@UserProfileDir &; "\Local Settings\Temporary Internet Files\ ",1) You must know that this code does not even run, it will error, why are you even posting it, when half is still commeneted out. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
shornw Posted September 15, 2011 Share Posted September 15, 2011 How can I delete Temporary Internet Files folder contents ? I used that code but its not working. Its trying to delete all file not contents, so windows dont let it. You have identified that your script is trying to remove the folder 'Temporary Internet Files' instead of the contents so why are you using DirRemove()? Use Filedelete() with wildcards to remove the files (see AutoIt help files) [font='Comic Sans MS']Eagles may soar high but weasels dont get sucked into jet engines[/font] 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