I'm trying to set a system environment variable to use use the current logged in username. I'm tried the below using the username environment variable but it doesn't work. I'm using "setx /m" on windows 7 64bit to set the variable but they aren't being set to the current logged in user.
- User_Network_Workspace = \network.share\Staff\%USERNAME%\workspace
- User_Network_Pocation = \network.share\Staff\%USERNAME%\pkg
Is what I'm doing possible or is there an alternative. Essentially what I want is the ability to have an environment variable for every user that logs in to point to there staff folder.
Thanks in advance.