|
Answer» I consulted the "cmd /?" help, and it is CLEAR as mud.
I am passing an argument to a COMMAND line program, that may contain spaces.
I thought this would work;
pgm.exe "one one-and-one"
but the PGM is COMPLAINING of a " character, that I thought the command line processor would be kind enough to remove.
Thanks in advance for the correct DOS incantation.You can use the SET keyword to format the multiword parameter into a single word variable:
CODE: [Select]set var=one one-and-one pgm.exe %var%
|