| 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\*.* 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. |
|