Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Identify UNC of machine logged into Terminal Server
Message
From
22/07/2003 23:21:36
 
 
To
22/07/2003 22:27:51
Gavin Reid
L & M Marketing Pty Ltd
Frenchs Forest, Australia
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00812624
Message ID:
00812636
Views:
14
This message has been marked as the solution to the initial question of the thread.
Gavin mate

The way I use it is a FOXPRO command that has been there from well FOXPRO

cComp = GETENV("CLIENTNAME")
* will return the computer name of the CLIENT computer

cPath = "\\"+cComp+"\c$"

This assumes that you are using an XP or NT CLIENT as it will not work in 98.
The Client must also be shared out. (c$ is a backdoor way to access a net drive)

You can do this but if the files are large and many thinh of the network issues before copying a file down to the client from TS.

We use a TS environment as well and I use the above method to access the COM ports of the client computer as believe it or not WIN2kTS does not as yet have this though Citris had it ages ago.

Have fun

Bernard


>Hi All,
>
>I have a VFP6 application running on a win2k terminal server and I'd like to be able to identify the UNC of the local machine that logged into terminal server. Anyone know how to do this? The reason I'd like to know this is the application creates a number of output files and I'd like to create them on the local machine rather than in the users profiler in terminal server.
>
>Thanks,
>Gavin.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform