Pages

Showing posts with label Batch Programme. Show all posts
Showing posts with label Batch Programme. Show all posts

Batch Programming Lesson 4

 Redirect the output of one command to other file


     To redirect the output of one command to other file, the ‘>’ and ‘<’ command is used. For example the below command is used to print the text “hello redirection” to a notepad file named “first.txt”.

Batch Programming Lesson 3

Batch Operators


     Similar to other programming languages, batch program do support various operators for performing operations like arithmetic and logical operations, bitwise AND, OR, NOT, shifting and redirection operation and separators and grouping operators. Before all these going on if you not yet see my 1st and 2nd tutorial go and see them first to understand what is batch progamming.

How to create Batch Programme - LESSON 2


     Hello Everyone today I am going to teach you Modes in Batch Programme. If you not yet read my 1st tutorial, visit and read it first.

     There are two different modes that are supported by DOS (Disk Operating System), they were, 

  • Interactive Mode
  • Batch (silence) Mode

How to create a Batch Program (lesson 1)


Batch programs can be written using any of the text editors such as notepad, wordpad and so on, but notepad is the most often used text editor in such cases. Like any other programing languages, lets start our first program with the ‘Hello World’ program.

1. Open up a notepad and type the following.

               @echo off 
         Echo Hello World 
        pause