Jump to content
Sign in to follow this  
lifesux

How can i delete that folder:

Recommended Posts

lifesux

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
Beege

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
lifesux

sorry code :

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

Share this post


Link to post
Share on other sites
JohnOne

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.

Share this post


Link to post
Share on other sites
shornw

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.