Is there a way I can have a single batch to run different configuration according to the Computer name ?
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, visit the help center. If this question can be reworded to fit the rules in the help center, please edit the question.
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.