i was tired of people messing with my things at work when i needed my pc to run something while i was far from it so i created a .bat file for that. i present to you… busy.bat.
when it is running people think your pc is running something important while in fact it is doing absolutely nothing. it works, no one messes with a computer when they dont know what it is doing.
What i did is, i created the .bat file and named it busy.bat, put it in a folder and added it to the system variable Path. Now when i want to open it i just press “windows + r”, type cmd.exe (or just press enter) and write “busy”. The magic happens.
Full code below:
@echo off
:: Check if the pop-up flag file exists
if not exist popup_running.flag (
:: Correctly create the VBScript for the popup
(
echo Set objShell = WScript.CreateObject("WScript.Shell"^)
echo intReturn = objShell.Popup("Do you really want to finish the system i-dot function?", 0, "Attention", 33 + 4096^)
) > popup.vbs
:: Start the VBScript, running the popup
start wscript popup.vbs
:: Create a flag file indicating that the popup is currently open
echo flag > popup_running.flag
)
:loop
if not exist popup_running.flag exit
cls
echo Running system check, please wait...
:: Random directory selector (example as before)
set /a "dir_num=%random% %% 5 + 1"
if %dir_num%==1 (
set "dir_to_check=C:WindowsSystem32"
) else if %dir_num%==2 (
set "dir_to_check=C:Program Files"
) else if %dir_num%==3 (
set "dir_to_check=C:Users"
) else if %dir_num%==4 (
set "dir_to_check=C:ProgramData"
) else if %dir_num%==5 (
set "dir_to_check=D:"
)
echo Checking %dir_to_check%
for /d %%d in (%dir_to_check%*) do (
dir "%%d"
ping localhost -n 1 -w 500 >nul
)
:: Wait 5 seconds before the next loop iteration
timeout /t 5
:: Continue loop
goto loop
Treeto is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.