Music Festival | Loans | Money | Mortgages | Mortgage
Help with a basic script from a newbie [Archive] - PCMech Forums

PDA

View Full Version : Help with a basic script from a newbie


slewis1972
01-09-2001, 03:55 AM
HI,

Just done a little scipt that basically deletes all the cookies in my
Windows/Cookie folder, just by clicking oin this file. BUT in the Cookie
folder there is one file that does not delete - Index.dat file. Is there a
comment I can write into the script that will tell it to ignore that file.

At present all I have in the script is:-

@echo off
@rem This sets all cookie internet files to be deleted and bypasses
@rem the confirmation prompt
deltree /y C:\Windows\Cookies\

Any help appreciated,

Scott

mosquito
01-09-2001, 05:09 AM
This does the trick on Win2K. I don' know about Win98, but it's worth the try


@echo off
rem This sets all cookie internet files to be deleted and bypasses
rem the confirmation prompt
del "C:\Windows\Cookies\*.txt" /Q /F

slewis1972
01-09-2001, 05:26 AM
Excellent, altered slightly to work in Win98. So easy once I thought about it.

Cheers

Scott