Is there a way I can have a single batch to run different configuration according to the Computer name ?
Tell me more
×
Server Fault is a question and answer site for
professional system and network administrators. It's 100% free, no registration required.
|
closed as not a real question by joeqwerty, Tom O'Connor, Scott Pack, Chris S♦, mailq Nov 22 '11 at 19:13
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, see the FAQ.
|
Yes, batch files support IF statements, and you can use any of the system variables (Type "set" at the command prompt to get an idea). Combine that with "labels" and you can easily create a decent script. I'm going to deliberately not Google that for you, though. Personally, I'd set a custom Environmental Variable defining what 'type' of machine it is in reference to whatever it is you're doing. |
|||
|