Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get computer name from system
Message
De
09/05/2001 07:51:49
 
 
À
09/05/2001 00:04:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00505117
Message ID:
00505185
Vues:
24
>Jason,
>
>>I am wondering how to get the computer name from the system. This will need to work on windows 95, 98, Nt, 2000 whether connected to a network or not.
>>
>>I am planning on using this for a simple software copy protection. Is there any other pieces of system information that would also prove useful instead of or in addition to the computer name.
>>
>>Jason
>
>SYS(0) should do the trick for basic information.
>
Have you all tried SYS(0) on a machine that is not networked? If I'm reading the Help correctly it may not return the desired info but I haven't tried it. Since he indicated the function had to work on a networked or non-networked machine I suppose an API call such as GetComputerName() may be needed.

Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform