MyExe "SomeParameter,Another,/GUI,/Log,OneLastParameter"
>"D:\Visual FoxPro Projects\DMIB FoxRun\main.exe" "D:\visual foxpro projects\dmib foxrun\PRG\fact_xls.prg,2004\01\01,2004\12\31,M ET M,metm.xls" "/LOG"In this case, we are calling D:\visual foxpro projects\dmib foxrun\PRG\fact_xls.prg for the PRG which expects to receive 2004\01\01, 2004\12\31, M ET M, and metm.xls as parameters. So, what I did was to put all that in quotes. The first one is the PRG and it always there. If I have a second parameter and so on in that quote, that means the PRG will expect those parameters. So far so good but I need a bunch of other optional parameters such as /LOG which accepts a log file as a parameter and /GUI, etc. So, the proposed approach I have thought would make sense is to keep the current first quoted parameter as is which handles the PRG and its parameters. Then, I would pass another quoted parameter for all the switches.