"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">
"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"When you parse it, you'll end up with to elements in the array:
"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","/GUI","/ADMIN"laParameters[1] = "D:\visual foxpro projects\dmib foxrun\PRG\fact_xls.prg,2004\01\01,2004\12\31,M ET M,metm.xls"
if lnParametersCount = 0 * Do something else lcCmd = "RUN " + laParameters[1] && or strtran(laParameters[1], ',', ' ') if ascan(laParameters, '/GUI', 2) * /GUI passed as parameter endif if ascan(laParameters, '/Log', 2) * /Log passed as parameter endifetc. I do not know exaclty what you want to do with the parameters, but I think somethink like that should work
"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"gets too long. I wrote long time ago a messaging program, where one of the parameters was the message, but if the message was longer than something I forgot, then it failed, so I ended up using an extra parameter that was a flag indicating that the message was a file instead of a message, if I needed a long message