Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can I get the location of my .exe
Message
De
02/04/2002 23:00:51
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00640175
Message ID:
00640221
Vues:
41
Hi Sergey,

If the main program in an application begins with somethng like

PROCEDURE MYAPP

Sys(16,1) returns "PROCEDURE MYAPP C:\MYAPPPATH\MYAPP.EXE

In this case justpath(sys(16,1)) fails to provide the correct path.

If the Main program does not begin with PROCEDURE, Sys(16,1) returns just the exe filename with full path and justpath(sys(16,1) will provide the correct path.

justpath(_VFP.ServerName) appears to provide the correct path in either case.

Elmer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform