This might be a simple question, but I didn't found any thread, may be I am searching wrong.
I am having a simple bat script and passing some arguments. Currently I am getting the argument based on there order. But I want to make simple for the user.
My current command line looks like: testBatch.bat setupip setupuser setuppass
My current batch script looks like:
set setupip=%1
set setupuser=%2
set setuppass=%3
echo I am doing some operation after this based on the input I got.
Now I want to modify the command such that the user should not be woried about the order of argument to pass. Basically I want to see my command like this: testBatch.bat --ip setupip --user setupuser --password setuppass
What modification I have to do in my batch script?