I have a script that needs the CLIENTNAME environment variable, it runs on a terminal server.
I have a batch file for testing that contains:
set CLIENTNAME; pause
If I RDP as an admin:
If I open a command prompt, run the script, it shows the clientname.
If I double click on the script, the CLIENTNAME variable does not exist.
If I Login from igel/wyse terminal:
If I double click on the same script, the it shows the clientname.
Other details: 2008R2, Xenapp 6.5, testing as a domain admin.
What's happening with the environment variable CLIENTNAME?
Why doesn't it exist when I double click on the batch file if I am RDPd to the server but does exist if a command prompt is already open?
All the other environment variables seem to be there.
Best Answer
Quotation: Clientname and Sessionname enviroment variable may be missing.