lcEXE = gcPath + "\WssPost.exe" + " " + ALLTRIM(interface.ss_ip) + ":" + ALLTRIM(STR(interface.ss_port)) + " " + ALLTRIM(pharmacy_config.nabp) + " " + lcFile RUN /N2 &lcEXEwith something that has quotation marks around the executable
lcEXE = textmerge(["<<gcPath>>\WssPost.exe" <<interface.ss_ip>>:<<interface.ss_port>> <<pharmacy_config.nabp>> <<lcFile>>]) RUN /N2 &lcEXEPerhaps even quotation marks around the last parameter. For running external procedures, I prefer to stuff the command line, with all the quotation marks and full paths on any filenames, into a .bat file (a simple strtofile(lcExe, "mybat.bat") suffices) and then if it doesn't work, open the cmd.exe and run mybat.bat in it, just to see what's wrong.