Anyone know how to get the machine name from a command line?
I have a batch file that I want to run that needs to be able to detect if it's running on a certain PC (mine), or being run from accross the network on another PC. If it's being run on my PC, all the commands need to be called locally with c:\ whereas if it's run accross the network, the commands need to be called remotely with \\pcname\c$\. Any ideas?
I have a batch file that I want to run that needs to be able to detect if it's running on a certain PC (mine), or being run from accross the network on another PC. If it's being run on my PC, all the commands need to be called locally with c:\ whereas if it's run accross the network, the commands need to be called remotely with \\pcname\c$\. Any ideas?