Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Weird Exception Unknow Software error
Message
De
26/04/2013 03:41:02
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01571899
Message ID:
01571950
Vues:
70
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform