Forum Discussion
Ryan_Moran
11 years agoValued Contributor
So to keep this simple it sounds like you want to run the same project with different cases for each machine.
In the past I have done this just by computer name:
JScript Ex.:
//using global variables outside a function
net = new ActiveXObject('WScript.Network');
switch (net.ComputerName){
case 'Computer1':
userName = 'testmonkey';
break;
case 'Computer2':
userName = 'testmonkey2';
break;
default:
userName = 'testmonkeygodmode';
}
//etc etc
In the past I have done this just by computer name:
JScript Ex.:
//using global variables outside a function
net = new ActiveXObject('WScript.Network');
switch (net.ComputerName){
case 'Computer1':
userName = 'testmonkey';
break;
case 'Computer2':
userName = 'testmonkey2';
break;
default:
userName = 'testmonkeygodmode';
}
//etc etc
Related Content
Recent Discussions
Name Mapping Issue
Solved2 hours agokgreger1- 2 days agodhundley