Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning a value from a VFP exe
Message
De
17/04/2000 14:11:05
 
 
À
17/04/2000 14:00:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00359172
Message ID:
00360528
Vues:
10
>You ought to try Tcl/Tk, for three reasons. One, it gives you an entrance into the Unix world, thus more career flexibility, Two, once you've written a Tcl/Tk macro, you'll never want to write a .cmd file ever again - the language even includes a comprehensive user interface. And three, it can be downloaded for free - just got to the Scriptics web site (www.scriptics.com).
>

Been there, done that, and use other tools as necessary. I've no interest in ?nix at this point in time - wasted time with it long ago and far away. Plenty of BSD in the past.

>>>What I want to know is whether executing ExitProcess() will properly return an integer in this manner, and how I would integrate this in my framework's shutdown routine.
>>
>>Use ExitProcess() as shown above as an alternative to QUIT. Like I said, makes its own sauce. This Win32 stuff is easy...
>
>Unfortunately, Tcl/Tk won't read ERRORLEVEL, since it's cross-platform to Windows, Unix (and Linux of course), and Macintosh.

Then it's flawed; if it checks and returns the termination code, it gets the DOS errorlevel, which is the same thing. Read the MSDN docs, and go bitch at whatever gave you the flakey, useless tool. VBScript, JScript, and anything that can call the Win32 API can do this...my API_APPRUN class does it in VFP, Appleman has sample VB code in his API book. Python does it, too. So does native NT ShellScript. Sounds like Tcl doesn't cut it here...
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform