বানাতে পারেন।এজন্য start/run এ গিয়ে notepad লিখে enter চেপে নোটপ্যাড
খুলুন।এখন নিচের কোডটি হুবহ নোটপ্যাডে লিখুন অথবা কপি করুন-
@echo offএখন file/save as এ গিয়ে save as type হিসেবে all files নির্বাচন করে my calculator.bat নামে এটি সেভ করুন।খেয়াল করুন, my calculator নামে একটি নতুন
color 4A
title MY CALCULATOR
:loop
cls
echo created by khaled mahmud khan
echo _
echo email:mail2sohag@gmail.com
echo web:www.pchelplinebd.co.cc
echo.
echo My Calculator
echo ———————————————–
echo * = MULTIPLY
echo + = ADD
echo – = SUBTRACT
echo 2 = SQUARED
echo / = DIVIDE
echo After an equation, type CLEAR to clear the screen of your equations, type KEEP to leave them there, or type EXIT to leave.
:noclear
set /p UDefine=
set /a UDefine=%UDefine%
echo.
echo =
echo.
echo %UDefine%
echo KEEP, CLEAR, OR EXIT?
set /p clearexitkeep=
if %clearexitkeep%==CLEAR goto loop
if %clearexitkeep%==KEEP echo. && goto noclear
if %clearexitkeep%==EXIT (exit)
:misspell
echo.
echo ———————————————–
echo You misspelled your command. Please try again (make sure you are typing in all caps LIKE THIS).
echo Commands:
echo CLEAR Clear all previous equations and continue calculating.
echo KEEP Keep all previous equations and continue calculating.
echo EXIT Leave your calculating session
echo Enter in a command now.
set /p clearexitkeep=
if %clearexitkeep%==CLEAR goto loop
if %clearexitkeep%==EXIT (exit)
if %clearexitkeep%==KEEP goto noclear
goto misspell
ফাইল তৈরী হয়েছে।দুই ক্লীক দিয়ে my calculator ফাইলটিতে ঢুকুন এবং হিসাব নিকাশের
কাজে এটি ব্যবহার করুন।
No comments:
Post a Comment