KpyM Telnet/SSH Server - Forum
%USERPROFILE% variable |
GlennS |
%USERPROFILE% variable |
Mar 15 2009 01:44 |
|
HI
I just installed KpyM and it is working very well. I did notice the System variable %USERPROFILE% is set to
"c:\program files\kts" when I SSH into the PC. The %USERNAME% is right, and even when you type 'set' in the SSH session, %USERPROFILE% returns the normal 'c:\documents and settings\[username]', the variable is being incorrectly set.
I was able to work around it in the 'allusers.bat' file by adding a line:
cd c:\docume~1\%USERNAME%
which gets me to my home by default, but being a new user, I wanted to know if there was something I missed.
Thanx much
GlennS
|
Kroum Grigorov |
|
Mar 16 2009 11:41 |
|
This is strange, the %USERPROFILE% variable should be set by your envirenment/user profile and this is not changed by KTS.
You are saing that:
>even when you type 'set' in the SSH session, %USERPROFILE% returns the normal 'c:\documents and settings\[username]', the variable is being incorrectly set.
What you mean by "the variable is being incorrectly set", how do you find that the variable is incorrect since the set commands shows that %USERPROFILE% is OK
Kroum
|
© 2007 - 2008 Kroum Grigorov