@@ -54,8 +54,19 @@ if %errorLevel% == 0 (
5454@ echo off
5555
5656if exist %~dp0 \restart.txt (
57- echo Restart pending. Exiting.
58- exit /b 1
57+ echo Error: A restart is pending. Please restart the computer and run the script again.
58+ :: Ask the user to ignore the restart and continue the script.
59+ echo Do you want to continue the script? (Y/N)
60+ set /p choice = Enter your choice:
61+ if %choice% == Y (
62+ echo Continuing the script...
63+ timeout /t 1
64+ goto :continue
65+ ) else (
66+ echo Aborting the script...
67+ timeout /t 1
68+ exit /b 1
69+ )
5970)
6071
6172@ REM This script will clean the Windows build directory.
@@ -79,7 +90,7 @@ echo Wscript.Sleep 1 >>"%TempVBSFile%"
7990CSCRIPT //nologo " %TempVBSFile% "
8091
8192@ REM Set Title is needed cuz of the way the console is displayed
82- title KARTHIK-V2.1 -STABLE
93+ title KARTHIK-V2.2 -STABLE
8394@ REM Ofc we need to mention the tool before starting the script
8495echo YOU ARE USING KARTHIK LAL WINDOWS CLEAN SCRIPT
8596@ REM Timeout is used to make the script wait for 3 seconds
@@ -256,7 +267,7 @@ del /f /s /q "%userprofile%\local settings\temporary internet files\*.*"
256267echo Removing recent files
257268@ REM Timeout is used to make the script wait for 1 seconds
258269timeout /t 1
259- @ REM Delete all the files in the recent files folder | clearing the recent files folder having some issues on windows 11 (not sure why)
270+ @ REM Delete all the files in the recent files folder ~ clearing the recent files folder having some issues on windows 11 (not sure why)
260271del /f /s /q " %userprofile% \recent\*.*"
261272
262273@ REM Fix all the corrupted files in the system drive
@@ -309,13 +320,13 @@ echo .
309320echo .
310321
311322@ REM PRINT REGARDS MESSAGE TO THE USER
312- echo Regards KARTHIK LAL
323+ echo REGARDS KARTHIK LAL
313324@ REM Timeout is used to make the script wait for 6 seconds
314325timeout /t 6
315326
316327@ REM REMOVING THE TEMP DIRECTORY AT LAST , DUE TO SOME LOOPING ISSUE ON WINDOWS 11 (not sure why)
317328@ REM Delete all the files in the temp directory
318- echo Finally REMOVING THE TEMP DIRECTORY
329+ echo Finally removing the temp_directory
319330@ REM Delete all the files in the local settings temp folder
320331echo Removing local_settings__temp files
321332@ REM Timeout is used to make the script wait for 1 seconds
0 commit comments