I have a program that returns the username of the current user on the computer and writes it to a central file. When I run it, everything works fine. The problem is that I need to call it from another machine and have it run for the machine that it is sitting on. If I call it locally while sitting in front of the machine, it works. If I call it from another machine, it is returning the user name of the calling machine so the program essentially then runs on the calling machine rather than the local machine where the program is sitting.
I hope I explained that well.
How do I call a program from another machine and have it run locally on the machine it is sitting on?
I'm calling the .exe from a batch file.
I hope I explained that well.
How do I call a program from another machine and have it run locally on the machine it is sitting on?
I'm calling the .exe from a batch file.