A Windows batch file is a process which you can use to execute a series of tasks or instructions.
Many companies use Windows batch processes to perform work, especially with SCM. To create Windows batch processes it is important to know how batch files work and how you can pass in parameters.
Harvest SCM all Versions on the Windows platform
Windows bat files support a number of special variables (%0, %1 through %9) in order to refer to the path and name of the batch job and the first nine calling parameters from within the batch job.
%0 is for path.
%1 represent the first variable that you enter
%2 represent the second and so on.
-We have a Hello.bat files with the following content: "echo Hello %2, your visiting %1"
-Now if we run: "Hello.bat [www.ca.com] [Christian]"
-We will see the following output: "Hello Christian, your visiting www.ca.com"
Batch file Wiki