Thursday, April 18, 2024

Creating a loading screen using batch scripting

1) Press Windows button + R and type Notepad.

2) Copy and paste the following code into Notepad:

 3) Save it as loading.bat on your desktop and execute the file to see the result.

 




Display time using batch scripting

1) Press Windows button + R and type Notepad.

2) Copy and paste the following code into Notepad:

@echo off

color 1A

:start

echo Display System Date

echo.

echo Current date: %date%

ping localhost -n 2 >nul

cls

goto start

3) Select File > Saves as, assign a file name: time.bat. Make sure to save on your desktop or in any folder on your computer that you can easily find. In this case, the time.bat file is saved on the desktop.