DOS Batch Command

Embed Size (px)

DESCRIPTION

Dos batch file, notepad

Citation preview

del /Q a ---> Deleate dir 'a' without interacting with user@echo off ---> this will print commands and output without C:\> prompt.Echo Hello World ---> Print whatever follows with Echopause ---> Pause will hold the output screenOperators and Description() ---> Grouping! ~ - ---> Unary Operators* / % + - ---> Arithmetic Operators> < > ---> Logical shifting and re direcional operators& ^ | ---> Bitwise And , Exclusive Or and Or= *= /= %= += -= &= ^= |= = ---> Assignment Operators, ---> Seperator&& ---> For using multiple Commands|| ---> For executing one from many commandsset /A 10+5 ---> For Arithmetic operation precedence of operations are given in order, *, /, %, +, -.C:\> echo hello redirection > first.doc---> Redirection happens to word document.C:\>cd C:\DOCUME~1\CYB3RC~1\LOCALS~1\Temp----> Its unary operator that is used to shortening the long directory names.echo Hi && echo Hello ----> print the text hi and hello using two different echo commandsecho Y | del *.txt ---> output of one command as input for another command