Others

30 sec Timer

@echo off
for /L %%A in (30,-1,0) do (
echo %%A
ping localhost -n 2 >nul
)
pause
Save it as Anything.bat

Cmd Calculator

@echo off
title Calc
:loop
cls
set /p first=First number:
echo.
echo Mark ( + - * / )
set /p mark=Mark:
echo.
set /p second=Second number:
set /a final=%first%%mark%%second%
echo.
echo %final%
pause
goto loop
Save it as Anything.bat

Disco !!!

@echo off
:S
echo #
echo # #
echo # #
echo # #
echo # DISCO! #
echo # #
echo # #
echo # #
echo # #
echo #
color 12
color 23
color 45
color 67
color 89
color 91
color 37
color 42
color 43
color 51
color 15
color 42
color 2
color 3
color 34
goto s
save it as Anything.bat

Let the computer Talk
With this vbs file, you can let your computer talk. Let it say what you want !!!

Dim message, sapi
message=InputBox("What do you want me to say?","Type here the text what you want !!!")
Set sapi=CreateObject("sapi.spvoice")
sapi.Speak message
Save it as Anything.vbs

Play windows start up tone and covey a message ...

Set objVoice = CreateObject("SAPI.SpVoice")
Set objFile = CreateObject("SAPI.SpFileStream.1")
objFile.Open "Windows XP Startup.wav"
objVoice.Speakstream objFile
Wscript.Echo "your message here"
Save it as Anything.vbs

Open a Website

start "www.examplewebsite.com" (without quotes and with a real domain name.)
Save it as Anything.bat

© 2023 Muzammil Loya