ফ্রী গেস্ট পোস্টিং অথবা ফ্রী ব্যাকলিংক পেতে পোস্ট করুন আমাদের সাইটে বিস্তারিত জানুন পোস্ট করুন !

Delete all temporary files in Windows 10 with one click

Delete all temporary files in Windows 10 with one click
Delete all temporary files

Delete all temporary files in Windows 10 with one click

Windows 10 can get filled with junk files that take up valuable hard drive space, so how about removing them with a simple batch file? You can remove temporary internet files, recent files, temp files, preload files, windows.old, and more.

  • You can delete all temporary files in Windows 10 with a single click by creating and running a batch file. Here's how to do it:
  • Open Notepad: Press Win + S, type "Notepad" and hit Enter.
  • Copy and paste the following code:

HTML
@echo off
del /s /f /q %windir%\temp*.*
rd /s /q %windir%\temp
md %windir%\temp
del /s /f /q %windir%\Prefetch*.*
rd /s /q %windir%\Prefetch
md %windir%\Prefetch
del /s /f /q %windir%\system32\dllcache*.*
rd /s /q %windir%\system32\dllcache
md %windir%\system32\dllcache
del /s /f /q “%SystemDrive%\Temp”*.*
rd /s /q “%SystemDrive%\Temp”
md “%SystemDrive%\Temp”
del /s /f /q %temp%*.*
rd /s /q %temp%
md %temp%
del /s /f /q “%USERPROFILE%\Local Settings\History”*.*
rd /s /q “%USERPROFILE%\Local Settings\History”
md “%USERPROFILE%\Local Settings\History”
del /s /f /q “%USERPROFILE%\Local Settings\Temporary Internet Files”*.*
rd /s /q “%USERPROFILE%\Local Settings\Temporary Internet Files”
md “%USERPROFILE%\Local Settings\Temporary Internet Files”
del /s /f /q “%USERPROFILE%\Local Settings\Temp”*.*
rd /s /q “%USERPROFILE%\Local Settings\Temp”
md “%USERPROFILE%\Local Settings\Temp”
del /s /f /q “%USERPROFILE%\Recent”*.*
rd /s /q “%USERPROFILE%\Recent”
md “%USERPROFILE%\Recent”
del /s /f /q “%USERPROFILE%\Cookies”*.*
rd /s /q “%USERPROFILE%\Cookies”
md “%USERPROFILE%\Cookies”
takeown /F C:\Windows.old* /R /A
pause
cacls C:\Windows.old*.* /T /grant administrators:F
pause
rmdir /S /Q C:\Windows.old\
echo.
attrib -h -r -s %windir%\system32\catroot2
attrib -h -r -s %windir%\system32\catroot2.
net stop wuauserv
net stop cryptSvc
net stop bits
net stop msiserver
Ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
Ren C:\Windows\System32\catroot2 Catroot2.old
net start wuauserv
net start cryptSvc
net start bits
net start msiserver
echo.
echo Task completed successfully…
echo.
PAUSE



  • Save the File: Click File > Save As, name it DeleteTempFiles.bat, and choose "All Files" in the "Save as type" dropdown. Save it to your desktop or another convenient location.
  • Run the Batch File as Administrator: Right-click the DeleteTempFiles.bat file and select "Run as administrator".
This script will delete temporary files from various locations on your system. Make sure to save any work before running it, as it will close any open applications that are using temporary files.




একটি মন্তব্য পোস্ট করুন

স্বাগতম !!! আমাদের ওয়েবসাইট ভিজিট করার জন্য, নিয়মিত আপডেট পেতে আমাদের সাইটের সাথেই থাকুন।
Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.
Amarbangla.top Discuss about web designing Tech
Hello, How can we help you?
Start chat...