Sign in to follow this  
Followers 0
lifesux

How can i delete that folder:

5 posts in this topic

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 ?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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

DirRemove(@UserProfileDir &amp
Edited by Beege

Share this post


Link to post
Share on other sites

sorry code :

DirRemove(@UserProfileDir & "\Local Settings\Temporary Internet Files\ ",1)

Share this post


Link to post
Share on other sites

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]

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0