Command Line Scripting Tutorial Series
(Part '2') # First Script
(Part '2') # First Script
Hi Everybody, It's The Second Tutorial Of Command Line Scripting Tutorial Series, And In This Second Tutorial We Are Gonna Make Our First Command Line Script, We Are Going To Make A Program Which Prints 'Hello World' On Screen.
For That We Needs To Make A New 'Bat/Cmd' File, Now Edit It And Type The Following Code(s).
@echo off
title Command Line Scripting.
For That We Needs To Make A New 'Bat/Cmd' File, Now Edit It And Type The Following Code(s).
@echo off
title Command Line Scripting.
Cls
Echo Hello World.
pause
And The Output Of That Program Would Be:
Detail Of Code(s) We Used In Our Program:
@echo Off: It's Used For Disabling The Prompt, For Enabling The Prompt Type '@echo on'
Title: It's Used For Changing The Caption/Title Of Your Batch Program.
CLS: It's Used For Clearing The Screen.
Echo: Echo Is Used For Printing Text On Screen, "Echo Hello World" Prints Hello World On The Screen.
Pause: Pause Command Is Used For Pausing A Command Line Script, Why We Used Pause In Our Program ?, Because Command Line Script Automatically Exits On The Completion Of A Script.
Echo Hello World.
pause
And The Output Of That Program Would Be:
Detail Of Code(s) We Used In Our Program:
@echo Off: It's Used For Disabling The Prompt, For Enabling The Prompt Type '@echo on'
Title: It's Used For Changing The Caption/Title Of Your Batch Program.
CLS: It's Used For Clearing The Screen.
Echo: Echo Is Used For Printing Text On Screen, "Echo Hello World" Prints Hello World On The Screen.
Pause: Pause Command Is Used For Pausing A Command Line Script, Why We Used Pause In Our Program ?, Because Command Line Script Automatically Exits On The Completion Of A Script.
OK, Now We Have Successfully Made Our First Script.
See You Guys Soon With The Next Tutorial.
See You Guys Soon With The Next Tutorial.
Stay Connected For More Updates.
Got Problem ?, Just Let Me Know.
Hope You Like It, If You Really Then Share It With Your Friends Please.
Thanks For Visiting.
Got Problem ?, Just Let Me Know.
Hope You Like It, If You Really Then Share It With Your Friends Please.
Thanks For Visiting.
For Some Commands And It's Detail Open A Command Prompt By Pressing (Win + 'R' Key) And Typing Cmd On It, And In Command Prompt Type 'Help', Some Commands Helps Are Not Given For That You Would Need Enter 'Command /?' For " E.g: Echo /? ".
No comments:
Post a Comment