Manipulate a string to use later
I was hoping for some guidance. I would like to create a script file that pull in a string - manipulates that string to be used by another file.
Example: Pull in the %computername% then change the string based on a pattern - every other character has say $ between them and the last letter is capital.
So if the computer name is myPCname - pull in that string - and change it to my$PC$na$mE and then save that result to a variable that can be access by another cmd file.
Any ideas are appreciated - thanks