Looks like the problem is the WssPost.exe program..... it seems that the creators of this program (our esteemed colleagues in another state) set a limit on how long the string in lcFile is. Too long and BOOM!!!
We will get in touch with them and get this corrected pronto!
Thanks for helping!
>>>> lcEXE = gcPath + "\WssPost.exe" + " " + ALLTRIM(interface.ss_ip) + ":" + ALLTRIM(STR(interface.ss_port)) + " " + ALLTRIM(pharmacy_config.nabp) + " " + lcFile
>>>> RUN /N2 &lcEXE
>>>>The error occurs in the RUN /N2 &lcEXE command.
>>>
>>>
>>>What contents does the lcEXE variable have?
>>
>>lcEXE = "C:\PHARMACY\WssPost.exe 208.237.122.33:12122 7871700 C:\PHARMACY\Surescripts\046719100.REQ"
>>
>>
>>WssPost.exe is an application that transmits the file (046719100.REQ) to our DataWarehouse for processing.
>>
>>208.237.122.33:12122 is the IP and Port of our DataWarehouse (changed here for obvious reasons!!!).....
>>
>>7871700 is the ID of our Test Location (again changed for .... oh well, you get the idea!! wink wink....)
>>
>>Funny, it works on my buddy's PC, but not mine!!!
>
>Try using ShellExecute in the Windows API
Tommy Tillman A+ NetWork+ MCP