Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Startup Directory
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00109133
Message ID:
00109842
Vues:
14
>Is there a direct way of determining the startup directory, or does on need to extract it from SYS(16), which includes the file name as well as the path?

LEFT(FULLPATH(SYS(16,0)),RAT('\',FULLPATH(SYS(16,0))) will pull the location of the execuatable or app fired. FULLPATH(CURDIR()) will get the current working directory, if your executable doesn't reside in the startup directory.

If you're starting in a directory that's specified by a UNC, or the executable is referenced without a drive being mapped to the share owning the directory, you'll get back a UNC for both under VFP 5.
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