BATCH SCRIPTING ::: 1. basics for beginners



                                                                                                                 Blog no 6


  Editors to be used:- notepad or sublime text editor.

   Actually what batch scripting is?

 Is this a language? the word "batch scripting'' consist scripting then it should be related to scripting!   you might be facing some of this thoughts,  so the answer is yes batch scripting is a language which is used to create a script files executable in windows

Normally these files have .bat extension or *.cmd

HOW TO MAKE BATCH FILES

1. open Notepad or any other text editor (but I suggest notepad is good enough for this task.)

2.save file(press ctrl+s) as file_name .bat



3.   Basic Code for BATCH SCRIPTING is of  the format given below


 4. To run the code run the file by double clicking on it 

then the output would be like  

EXPLANATION  OF THE CODE


USE OF @

 *** USE  OF @ IS TO NOT OUTPUT THE RESPECTIVE .

COMMAND

USE OF ECHO 


ECHO is used to echo to command  

USE OF @rem

Batch uses @rem to start a comment line  the whole line is ignored when a program executes

USE OF pause

  pause command is used to stop the execution of the command and to display the output. Otherwise sometimes command prompt closes rapidly   

Creating a shortcut using batch scripting

lets, make shortcuts for the applications using a batch file


similar to the above example save this file and open this file by double clicking on it

Comments