General information
Category:
Coding, syntax & commands
>>>>Hi,
>>>>I am trying to create a call to external program.
>>>>I created a string with command line options,parameters etc. and then
>>>>call RUN command.
>>>>When I use RUN/N1 &lcCommand everything looks good, but when I did
>>>>RUN &lcCommand, I've got an error message 'String is too long'.
>>>>So, when I use option N1, VFP doesn't check and send it to OS?
>>>>Does anybody have a similar problem?
>>>>TIA
>>>
>>>Jerry, try to create the full command string before your execute it.
>>>
>>>lcRunCommand = "RUN " + lcCommand && or "RUN/1 " + lcCommand
>>>&lcRunCommand
>>
>>
>>Nick,
>>thanks, but it doesn't work.
>>Jerry
>
>Could you post your full command string code here?
Nick,
It's very long and has a lot of command line switches,options and variables.
********************
lcCommand = gs_PSSQRBin+'SQRW.EXE' + " "+;
gs_PSSQRSrc+tcSQRName+'.SQR' + " "+;
CHRTRAN(xCrypt(gu_PSUserID),')','') + "/" +;
CHRTRAN(xCrypt(gu_PSUserPwd),')','') + "@" + gs_PSDataBase+" "+;
"-xcb -i" + lcPSIniLoc + " -m"+lcPSIniLoc+"allmaxes.max"+" "+;
"-o" + gs_PSTempLoc+"SQR.LOG"+" "+;
"-ZIF"+lcPSIniLoc+"pssqr.ini" +" "+;
['CATS']+" "+['CATS']+" "+['CATS']+" "+lcParamString
RUN &lcCommand && this is very the problem
**************
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only