So we have a string
for example
cifs shares -add "sharename" "/vol/BLAH_VOLUME/BLAH_DIRECTORY/blah_FOLDER"
So we can easily do a replace with
$var = 'cifs shares -add "sharename" "/vol/BLAH_VOLUME/BLAH_DIRECTORY/blah_FOLDER"'
$d = $var -replace '/vol/', '/vol/newname_'
That's all well in good. One problem.. I now only need to lowercase just that part..
obviously the whole thread we can do $d.tolower() .. But that doesn't help me
SO i'm left with
$d
cifs shares -add "sharename" "/vol/newname_BLAH_VOLUME/BLAH_DIRECTORY/blah_FOLDER"
Any ideas would be greatly appreciated.