Sunday, 23 June 2019

Batch Scripts

A script file is a collection of commands.

For example, I created Hello.bat file like below.

Hello.bat
set firstName=Krishna
set lastName=gurram
echo %firstName% %lastName%
pause
dir
pause
ver


You can execute the bat file either by directly opening it (or) by calling Hello.bat from command prompt.


Points to note
a.   .bat is the extension for batch files.

Previous                                                 Next                                                 Home

No comments:

Post a Comment