Showing posts with label BATCH FILE HACKING. Show all posts
Showing posts with label BATCH FILE HACKING. Show all posts
A Basic Calculator In Batch

A Basic Calculator In Batch

Basic calculator written in batch. Copy the given text & paste it on Notepad, then save it as calc.bat

Code:
@echo off
title Batch Calculator
echo -------------------------http://www.basicsofhacking.com-------------------------
:1
echo Enter the values with operands (E.g. 1+1):
set /p input=
set /a result=%input%
echo Result is: %result%
:2
echo Wanna continue? Press Y for yes Or N for No
set /p "choice=>"
if %choice%==Y goto 1
if %choice%==N goto end
echo Invalid choice
goto 2
:end
exit


You can also download the text fie from here.
Trick For Displaying Only Off In DOS Window

Trick For Displaying Only Off In DOS Window

Users who have little knowledge about Batch file programming, will be familiar with the Echo command. As Echo command is used for displaying any text in the DOS windows (Like entering echo Crack The Hack in DOS will display Crack The Hack). Have you ever tried to display Off using this command?

When you will execute command as echo off , it will display nothing. Reason behind is that by using @echo off command in batch programming, the command prompt does not appear on your screen. The @ symbol before the ECHO command means that the ECHO command will stay throughout the whole batch file unless turned on again. Without the @, it will only apply to the command directly after it. Coming back to the topic, users can't display Off in DOS window with echo off command directly. Here's a simple trick for displaying Off in DOS window:

Just Enter echo;Off in DOS, it will display Off in DOS window. 

You can also try the following:
  • echo:off
  • echo,off
  • echo.off
  • echo/off
Make Fool Your Friend By Fake Warning Message

Make Fool Your Friend By Fake Warning Message

Make fun with your friends by making a batch file which will generate fake warning message. Download text file and then save it as fake.bat. Open it, it will generate fake warning message. Don't panic, it will not harm your computer. It's just a fake warning message.

You can download text file from here.

Some extra fun? Paste this batch file on startup folder. When your friend will start computer, batch file will execute automatically.