I have been writing batch files, and was wondering if there is a way to integrate user input by adding custom switches to batch files, so that it picks up the variables when running the batch file.
I know you can use the set /p to prompt the user for input, but I want to be able to grab the parameters from the single command that the user inputs outside of the batch file.
For example > From command line.
C:\> batchfile.bat -s "somevariable"
I want it to pass that "somevariabe" to the program when it runs the batch file, but don't know the syntax on how to make this opperational.
Any help/advice is appreciated. Thanks.