Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Weird Exception Unknow Software error
Message
From
26/04/2013 03:41:02
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01571899
Message ID:
01571950
Views:
71
Just in case your colleague's PC has a path with embedded spaces, I'd rewrite this
	lcEXE = gcPath + "\WssPost.exe" + " " + ALLTRIM(interface.ss_ip) + ":" + ALLTRIM(STR(interface.ss_port)) + " " + ALLTRIM(pharmacy_config.nabp) + " " + lcFile
	RUN /N2 &lcEXE
with 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 &lcEXE
Perhaps 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.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform