Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Batch File commands in XP

Status
Not open for further replies.

lanuser

IS-IT--Management
Mar 16, 2003
11
SG
Hi,

I have created a batch file which is supposed to delete all files in a particular folder when executed, however it does not work. Appreciate any help.

The commands in the batch file:
cd C:\Documents and Settings\yourprofilename\Local Settings\Temporary Internet Files\
del *.*
 
Del *.* normally asks for confirmation (Y or N).
Try del /q *.*
 
Its a hidden directory. It contains special files that XP/2000 etc use to track temporary internet pages & cookies etc. Therefore XP/2000 etc stop DOS from seeing the files in this folder.

Try opening a DOS box and typing

cd "C:\Documents and Settings\%username%\Local Settings\Temporary Internet Files"

then

dir

No files will be found!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top