Script tự động xóa file tạm
Script tự động xóa file tạm
Mục tiêu của bài viết là tạo ra một đoạn script, để thực thi xóa tất cả các tập tin tạm, từ các đường dẫn chứa tập tin tạm thời sau đây:
C: \ Windows \ Prefetch \ C: \ Windows \ Temp \
C: \ Users \% username% \ AppData \ Roaming \ Microsoft \ Windows \ Recent Items
Mở chương trình Notepad, nhập vào các câu lệnh sau:
cd C:\Users\%username%\AppData\Local rmdir /S /Q Temp
del C:\Windows\Prefetch\*.* /Q
del C:\Windows\Temp\*.* /Q
del C:\Users\%username%\AppData\Roaming\Microsoft\Windows\Recent Items*.* /Q
Sau đó lưu lại với tên "Windows_7_Temp_File_Cleanup_Batch_File.bat"
Download file "Windows_7_Temp_File_Cleanup_Batch_File.bat" tại đây (link Mediafire)
Cám ơn các bạn đã đọc bài viết "Script tự động xóa file tạm"
Nhận xét
Đăng nhận xét