There are several ways to get what appears to give the same answer
Say my name is Joe Smith
I have seen the "username" in the following directory
C:\Documents and Settings\username\Local Settings\Temp
as "jsmith" as well as "Joe Smih"
Any explanation and which one would always get me to that temp directory?
Code:
Set WSH = CreateObject("Wscript.Network")
UserWSH = WSH.UserName
UserApp = Application.UserName
UserEnv = Environ("username")
Say my name is Joe Smith
I have seen the "username" in the following directory
C:\Documents and Settings\username\Local Settings\Temp
as "jsmith" as well as "Joe Smih"
Any explanation and which one would always get me to that temp directory?