Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Capture User ID
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01590007
Message ID:
01590103
Views:
55
>I have an application which will be run randomly to check the speed of machines on the network. It emails the result to me. But how can I capture the machine name or preferably Windows login name in VFP so the the application can be run without having to keep a log of where it was run

An alternative to Sys(0) can be any enviroment variables, for example:
? GetEnv("COMPUTERNAME")
? GetEnv("USERNAME")

? GetEnv("USERDNSDOMAIN")
? GetEnv("USERDOMAIN")
? GetEnv("LOGONSERVER")
? GetEnv("USERPROFILE")
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform