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.