1.

Solve : PLEASE HELP trying make .bat to delete temporary internet files at every startup?

Answer»

i have made a batch file to run at start up... this batch file cleans internet tracks, by deleting history and want it to delete temporary internet files as well. My delima is that the temporary internet file folder is a read only file shown in the properties, in the explorer. when checking the attributes from a comand prompt, it is shown as a hidden,system file. I have tried to change attributes on the folder, as well as the files from a command prompt, using the (attrib +a -r -s -h c:\tempor~1 /s) command. The hard drive rattles no error messages or other messages for that matter. when i went to look in the windows explorer the read only is still checked. Can anyone help me edit the attributes of this folder.. I know there is programs to help do this, but i'm not interested in another program... I only want to know if it is possible to change the attributes on this folder and keep them changed when REBOOTING... Maybe i should be in programming,,, but i know nothing about programing, so if there is programming involved , i'll have to be spoon fed the instructions,,, if u know what i mean....THANKS...WEW delete the contents of the folder instead , c:\tempor~1\*.*
You can do it through Internet Explorer SETTING itself:
http://samanathon.com/delete-internet-explorer-7s-temporary-internet-files-automatically-when-it-closes/thanks for the replys,,, I have tried to delete the files as u suggested, also tried to remove the directory... both of which GIVES the same error message file not found,,, which i figure it's because of the hidden-system attributes... Sorry i didn't mention that i am running IE 6.0,,, because 7 wouldn't let music match jukebox or windows media player play after installation... Also as i mentioned I would like to know how to change the attributes to folders like these.. I think it will come in handy for other files and folders down the road...so as i wrote in my original post is it possible to change the attributes for this folder and files....I thought maybe editing the registry ,, but have had little experience with that.. I couldn't FIND the folder there. Thanks again ... WEWIf you apply setting from my link, temp files will be deleted when you EXIT Internet Explorer.Sorry i missed the link, I read it and thought it meant for IE 7.0. I did have the setting to dump temp i-net files on exit. But Still would like to know if it is possible to edit the attributes on files such as these, as i said it would come in handy for other files as well... Thanks at least i don't have to worry about manually deleting them. WEWQuote

I have tried to change attributes on the folder, as well as the files from a command prompt, using the (attrib +a -r -s -h c:\tempor~1 /s) command

attrib /?
Displays or changes file attributes.

ATTRIB [+R | -R] [+A | -A ] [+S | -S] [+H | -H] [drive:][path][filename]
[/S [/D]]

+ Sets an attribute.
- Clears an attribute.
R Read-only file attribute.
A Archive file attribute.
S System file attribute.
H Hidden file attribute.
[drive:][path][filename]
Specifies a file or files for attrib to process.
/S Processes matching files in the current folder
and all subfolders.
/D Processes folders as well.

Try using the /D to set attributes on a folder.

Note: when deleting files, it may not be wise to delete the folder the files were in.

Ok I must be missing something... I have reset the attributes. i can recheck from a command prompt. The attrib are reset to archive, when i close the cmd prompt. then i go into win-explorer it still says read only on the properties. when i restart the pc the attrib is set back to system at the command prompt... some one please help...and thought i might also add, after setting the ie 6.0 to dump files when browser is closed, i still SEE files in it that are 4 days old. This is why I want to have the power to delete these files with a batch file...I guess i'm back to manually deleting them to be sure....I also tried what sidewinder suggested....no help after reboot they are reset back to the system attrib.


Discussion

No Comment Found