Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get computer name from system
Message
From
09/05/2001 07:51:49
 
 
To
09/05/2001 00:04:39
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00505117
Message ID:
00505185
Views:
25
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform