Tuesday, 10 September 2013

Computername variable in cmd

Computername variable in cmd

In CMD the following variable will give you the name of the computer:
%COMPUTERNAME%
I need a variable that takes a part of the computername.
I need a if conition that checks if the computername contains "KM" at the
start and 00 at the end. It should not look at the number between KM and
-00
KM100-00 KM200-00

No comments:

Post a Comment