Jump to content

Recommended Posts

Posted

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 ?

Posted (edited)

What is &amp for? You have half the code commented out making it only

DirRemove(@UserProfileDir &amp
Edited by Beege
Posted

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]

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...