Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get the server name?
Message
De
24/09/2005 06:53:31
 
 
À
23/09/2005 11:44:59
Ricardo Giron
Secrex Compañía de Seguros de Crédito
Lima, Pérou
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP
Network:
Windows NT
Database:
MS SQL Server
Divers
Thread ID:
01052406
Message ID:
01052687
Vues:
26
>Hi Sergey!
>
>I hope you are feeling good.
>
>I'm sure you can help me with this. I need to get the name of the server where a VFP .APP or .EXE is executing.
>
>Thanks a lot

Hi Ricardo,

What is this? Asking a question directly to Sergey? Don't you trust the answers of the others? :)

I think you don't really refer to where it is executing, but rather to where it is started. In that case, then here is the way you can find out what the UNC is of the program being executed:
lcAppDir = addbs( GetUNCPath( alltrim( justpath( sys( 16, 0 ) ) ) ) )
You can find the function GetUNCPath() on Andrew Coates' website:
http://www.civilsolutions.com.au/publications/getuncpath.htm

Good luck.
Groet,
Peter de Valença

Constructive frustration is the breeding ground of genius.
If there’s no willingness to moderate for the sake of good debate, then I have no willingness to debate at all.
Let's develop superb standards that will end the holy wars.
"There are three types of people: Alphas and Betas", said the beta decisively.
If you find this message rude or offensive or stupid, please take a step away from the keyboard and try to think calmly about an eventual a possible alternative explanation of my message.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform