Batch Files

D

Dre'

I need to create a batch file that looks at the first "5" characters
of a %COMPUTERNAME% to determine what command to run next in a batch
file.

ie. if %COMPUTERNAME% == "PC-WS-xxx" goto load99

if %COMPUTERNAME% == %COMPUTERNAME% works for all computers but I
would like only a subset of computer names to run certain parts of the
batch file.

Is there a wildcard or syntax that would work for this scenario?

Thanks in advance.
 
R

Ray at

Please don't multipost. I just wasted my time answering an answered
question in the cmdprompt group.

Ray at work
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top