Batch file or Powershell script to create a configuration file based on truncated computername
$10-30 USD
货到付款
The attached batch file creates a configuration file based on the computer name. I need it modified to edit the computer name variable so that if the name starts with "PC", the name is truncated to 7 characters. Otherwise, it is truncated to 5 characters.
So, PC12345 => PC12345, PC1234567 becomes PC12345, WM123 => WM123, WM123456 becomes WM123
I prefer a solution that does not require Powershell or VB.
项目ID: #16628724
关于项目
授予:
Hello, I fixed the batch, now it truncates the name based on the computer name. You can have it right away. Thank you :)
有6名威客正在参与此工作的竞标,均价$27/小时
Hello I would like to investigate for a little, meantime I believe it should be pretty easy project.....
Hey All you need is to edit the computer name to be 7 characters if it starts with "PC" and to be 5 characters if it starts with anything else? Do you need anything else? I can help
Hi, Having 9 years of experience in Information technology whoch includes windows and linux as well as network operations management. Have worked on various powershell scripting and schedule windows batch files as wel 更多