Can anyone tell me an easy way to identify the physical workstation that I am working on? I built a customization that really needs to know which physical machine I am working on. In a perfect world this would also work through Terminal Server and still identify the actual machine that the user is on. Thanks in advance:) Darren Bezzant, NCPS, NCSD dbz@nb.aibn.com
Try this: ComputerName := COPYSTR(Environ(COMPUTERNAME),14))
quote:
Originally posted by Lars Westman: Try this: ComputerName := COPYSTR(Environ(COMPUTERNAME),14))
This will work only on NT. On Win9x you must add in Config.sys line: SET COMPUTERNAME=… Or you must use OCX, which can read registry. Any solution will need manual configuration on everyone PC. So I prefer first solution, less trouble. BTW how get NF installation path (without OCX usage) ?
Will this work on Terminal Server? The way I understand the way TS Works, it takes over for the underlying system, thereby everyone would return the same name. Is this right? Darren Bezzant, NCPS, NCSD dbz@nb.aibn.com
On TS you can use: CLIENTNAME For complete list of const. type SET in command prompt win.
Does anybody know an OCX for accessing the registry. I need this for automated dialing from within the debitorform. Thanks to all Peter