I was wondering if you could help me out?
What I need to do is get the name of a logged in user on a windows computer and then either store it into a file/batch file or store as a variable.
We have more than one domain that we need to log onto, but the 2 domains have a different naming convention.
For example if your name is Guest User, on the one domain you would log in as guser and on the other you would log in as guest.user .
I want to get the current logged on username and then say "if username = guser then newusername = guest.user
Trouble is my understanding of batch files is limited. I know i can do a %username% in a batch file, but i done know how to get the responce from the batch file to the program.
Hope that makes sence, any help would be VERY much appreciated.