Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is my username
Message
From
02/11/2005 05:28:30
Neil Mc Donald
Cencom Systems P/L
The Sun, Australia
 
 
To
02/11/2005 05:19:30
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01064384
Message ID:
01064391
Views:
38
Hi,
If you are logged in to the TS, issueing a SYS(0)from the running PRG will give you the MACHINE_NAME and USERNAME of the session on the TS.
>>Hi,
>>Try SYS(0) and parse the user name, it comes back MACHINE_NAME#USERNAME
>>
>>
>>>>Hi,
>>>>From DOS Command issue a "ECHO %USERDOMAIN%\%USERNAME%".
>>>> -or-
>>>>Issue a WHOAMI.exe gives the same. It comes in the Windows Resource Kit.
>>>>
>>>>Is there a way to find my username on remote computer when I use remotedesktop or Terminal Server?
>>>>>I try to read WMI classes but I am lost :o)
>>>>>TIA
>>>
>>>Thanks Neil, but I want to get this programaticly :o)
>
>Thanks Neil,
>Maybe I was not clear, I want to know not the username on local machine, but with what username I am logged on remote computer.
>And all this from my local computer :o)
Regards N Mc Donald
Previous
Reply
Map
View

Click here to load this message in the networking platform