A script file is a collection of commands.
For example, I created Hello.bat file like below.
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.
No comments:
Post a Comment