For Clock:-
Step 1:- Copy and paste this code into notepad
@echo off
title DOS-Based Clock
color 0a
cls
: CLOCK
cls
echo The current time is: %time%
goto CLOCK (91)
Step 2:- Save File as "Clock.bat" (with quotes)
For Calculator:-
Step 1:- Copy and paste this code into notepad
@echo off
title Batch Calculator by Techies
color 0c
:top
echo ————————————–
echo -Welcome to Batch Calculator by Techies Blogspot !-
echo ————————————–
echo Enter your Calculations
echo.
set /p sum=
set /a ans=%sum%
echo.
echo = %ans%
echo ————————————————————–
pause
cls
echo Previous Answer: %ans%
goto top
pause
exit
Step 2:- Save as "Calc.bat" (with quotes)
0 comments:
Post a Comment