|
Answer» [highlight]@echo off del "C:\Documents and Settings\*\Lokala inställningar\Temporary Internet FILES" pause[/highlight] what have i DONE wrong i want to delete all the data under all users without making a userlist i think the problem is in the "*" so if any one have a great solution please share it and BTW, correct my spelling my english sucks.. i think the problem is the "*" aswell. try putting %username% where the "*" is.but U know the username is not the one who is logged in. its for a whole COMPANY so i have to delete all the temp internet files for all the users... so ... Try this:
del C:\%temp%
If you type echo %temp% It will show the path to your tempory internet files so it should work.you can try this Code: [Select]@echo off For /D %%a In ("C:\Documents and Settings\*") Do ( If Exist "%%a\Local Settings\Temporary Internet Files\*" ( del /s /P "%%a\Local Settings\Temporary Internet Files\*.*" ) ) substitute /P with /Q for QUIET modefor the documents and setting isnt it ment to be like C:\docume~1Quote Quoteyou can try this Code: [Select]@echo off For /D %%a In ("C:\Documents and Settings\*") Do ( If Exist "%%a\Local Settings\Temporary Internet Files\*" ( del /s /P "%%a\Local Settings\Temporary Internet Files\*.*" ) ) substitute /P with /Q for quiet mode
But it Doesnt work ;( why the least you could do is show some output and the errors. It does no good just by saying it does not work. my output: Code: [Select]C:\temp>test.bat Cleaning Administrator C:\Documents and Settings\Administrator\Local Settings\Temporary Internet Files\Content.IE5\index.da t, Delete (Y/N)? n C:\Documents and Settings\Administrator\Local Settings\Temporary Internet Files\Content.IE5\CVE7I3YF \01[2].htm, Delete (Y/N)? y Deleted file - C:\Documents and Settings\Administrator\Local Settings\Temporary Internet Files\Conte nt.IE5\CVE7I3YF\01[2].htm C:\Documents and Settings\Administrator\Local Settings\Temporary Internet Files\Content.IE5\CVE7I3YF \16CBBD6EAF1D8BF85827941DFF4F72[1].jpg, Delete (Y/N)?
QuoteQuoteQuoteyou can try this Code: [Select]@echo off For /D %%a In ("C:\Documents and Settings\*") Do ( If Exist "%%a\Local Settings\Temporary Internet Files\*" ( del /s /P "%%a\Local Settings\Temporary Internet Files\*.*" ) ) substitute /P with /Q for quiet mode
But it Doesnt work ;( why
ok strange it doesnt work for me Quotefor the documents and setting isnt it ment to be like C:\docume~1
|