删除临时 Internet 文件(带扩展名的文件除外)
我是工作中的 AutoCAD IT 人员,因为我们的 Windows IT 人员总是通过 facebook 和 e-baying 我的经理抱怨他的临时文件夹太满了。因为我总是在研究和列出(并且想要晋升),所以我已经举起手来帮助我自己的口袋哦,我的意思是说伟大的老板。
Batch 不是我的家乡,所以我遇到了两个问题 #1:
我想删除除 cookie 之外的所有临时互联网文件,否则他会抱怨他记不起他与其他所有内容一起存储的所有 101 个用户名和密码可以走了。
其次,我的 /y 遇到了麻烦,显然我的批处理说它不是有效的选项
这是我的代码:
@echo off
echo Now Deleting contents of temp folder...
del /y "%userprofile%\Local Settings\TEMP\*.*"
echo Now Deleting contents of temporary internet folder...
del /y "%userprofile%\Local Settings\Temporary Internet Files\*.*"
I’m the AutoCAD IT guy at work, because our windows IT guys always facebooking and e-baying my manager has complained he’s temp folders are too full. Because I'm always researching and listing (and want that promotion) I''ve put up my hand to help my own pocket oops I meant to say great boss.
Batch is not my home front so I have run into two problems #1:
I want to delete all the temporary internet files except the cookies otherwise he’ll whinge he cant remember all his 101 usernames and passwords he keeps stored in with them everything else can go.
Secondly I’m having trouble with my /y apparently my batch says its not a valid option
Here's my code:
@echo off
echo Now Deleting contents of temp folder...
del /y "%userprofile%\Local Settings\TEMP\*.*"
echo Now Deleting contents of temporary internet folder...
del /y "%userprofile%\Local Settings\Temporary Internet Files\*.*"
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
DEL 命令中不存在 /Y 开关。如果要在不确认的情况下删除文件,则开关为 /Q。无论如何,如果你使用下面的方法就不需要它了。
我不知道 cookies 文件的扩展名是什么,但假设是 COK。以下方法将删除除 .COK 扩展名之外的所有临时文件:
键入 FOR /?了解更多详情。
我希望它有帮助。
安东尼奥
The /Y switch does not exist in DEL command. If you want to delete files with no confirmation, the switch is /Q. Anyway, you don´t need it if you use the following method.
I don´t know what the extension of cookies files is, but suppose that is COK. The following method deletes all temporary files excepting those with .COK extension:
Type FOR /? for further details.
I hope it helps.
Antonio