|I am trying just to return the drive letter from the %systemdrive% variable. Since the variable returns C: for the most part I would like to remove the : and just have the C for the bat file. I would like this to work on both Vista and XP from a batch file. Any ideas how I can accomplish this?|
I know I can use findstr /C:: to find the character however I am not sure how to remove the character from there.
Any help would be greatly appreciated.