Windows Batch Tutorial
Introduction First batch program Special characters in Batch programming Accepting user input Operators in Batch scripting Working with variables Integer operations Floating point operations Conditional Statements Looping statements goto statement Writing functions Passing arguments Returning exit codeFirst script in windows batch
Let’s go ahead and write our first batch program. Create one file “simple.bat” and store below lines in it. Don’t worry about the syntax at the moment.
@echo off
echo hi
pause
To execute this file, you can double click on the file or you can run it from the command prompt. As you can see in below image, it prints the message “hi”.Web development and Automation testing
solutions delivered!!