I wonder how many members even know how to code in DOS, let alone what a BAT file is?
I wonder how many members even know how to code in DOS, let alone what a BAT file is?
1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
2. If your question is resolved, mark it SOLVED using the thread tools
3. Click on the star if you think someone helped you
Regards
Ford
@ck76 Thank you for answering back your input was knid but it didn't work.
![]()
echo off echo Cleaning system junk files, please wait REM displays a line of text del /f /s /q %systemdrive%\*.tmp del /f /s /q %systemdrive%\*._mp del /f /s /q %systemdrive%\*.log del /f /s /q %systemdrive%\*.gid del /f /s /q %systemdrive%\*.chk del /f /s /q %systemdrive%\*.old del /f /s /q %systemdrive%\recycled\*.* del /f /s /q %windir%\*.bak del /f /s /q %windir%\prefetch\*.* rd /s /q %windir%\temp & md %windir%\temp del /f /q %userprofile%\cookies\*.* del /f /q %userprofile%\recent\*.* del /f /s /q %userprofile%\Local Settings\Temporary Internet Files\*.* del /f /s /q %userprofile%\Local Settings\Temp\*.* del /f /s /q %userprofile%\recent\*.* REM /f: force deleting of read-only files REM /s: Delete specified files from all subdirectories. REM /q: Quiet mode, do not ask if ok to delete on global wildcard REM %systemdrive%: drive upon which the system folder was placed REM %windir%: a regular variable and is defined in the variable store as %SystemRoot%. REM %userprofile%: variable to find the directory structure owned by the user running the process ipconfig /release ipconfig /renew ipconfig /flushdns ipconfig /registerdns TIMEOUT /T 10 echo Cleaning of junk files is finished! shutdown -r -f -t 30 /C "Applying Changes" ECHO. ECHO Removing CleanUp utility... REM Delete self on Exit START /b "" cmd /c DEL "%TEMP%\Total_Clean_1.bat" cmd /k DEL "%~f0"
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks