Hostname batch script.
Posted: 17 Jul 2011 03:21
Dear all Sifu,
Anyone know how to do a batch script got filter the hostname ?
like in my environment my workstation name
"KL-Petronas-Marketing-001"
"JB-TowerB-Sales-001"
"A-PN-Support-001"
The Hostname Format is "Location-Building-Department-PC"
But using Hyphen to separate which value
I just want the
"KL-Petronas"
"JB-TowerB"
"A-PN"
Thank you.. deeply appreciate.
Anyone know how to do a batch script got filter the hostname ?
like in my environment my workstation name
"KL-Petronas-Marketing-001"
"JB-TowerB-Sales-001"
"A-PN-Support-001"
The Hostname Format is "Location-Building-Department-PC"
But using Hyphen to separate which value
I just want the
"KL-Petronas"
"JB-TowerB"
"A-PN"
Thank you.. deeply appreciate.