I'm trying to write my first batch script and trying to understand how to pass arguments. It's a very simple command which runs fine in cmd.
Command:
C:\Program Files\Foo> myexe -sd tempVar >> C:\temp.txt
Here -sd is command option and tempVar is another parameter (I know this tempVar value and can hard code in batch script).
Batch Script
Start "C:\Program Files\Foo\myexe.exe" -sd tempVar
Error While executing about batch file, I get an error stating -sd is not recognized. Please suggest what should I work/correct in this script?