I want the ability to add an extra parameter
Which if (and ONLY if) it's there and it's a number, it adds itself to the batch file code
Specifically, the code is:
Code: Select all
"c:\Program Files\ImgBurn\ImgBurn.exe" /MODE write /SRC "E:\my iso images\abcdef.iso" /DEST D: /COPIES 1 /EJECT YES /START /CLOSESUCCESS /WAITFORMEDIA
Let's say the file is called my-iso.bat
If I just type my-iso.bat, then the above code gets run
But... if I type "myiso.bat 3", then "/COPIES 1" becomes "/COPIES 3"
So, I need code that says, if no arguement is supplied, then use "/COPIES 1" (or actually... can just leave out)
I'm not sure what the code is to check for an arguement...
I can write code... but the DOS code seems to be a programming language of its own

Any help would be most appreciated
Thanks
OM