Search and delete on unc paths
Posted: Fri Jun 16, 2006 9:45 am
Hello,
I'm trying to do a search and replace on the following:
net use [a-z]: \\\server\\(path|path1|path2|path3)
i.e find "net use r: \\server\path" and delete the line from the file
The server name is always the same and there are a number of paths as indicated above. The Batch Replace never seems to work so I'm guessing my regular expressions are incorrectly used. Any advice on what search command I should be using? There are up to 7 lines to be deleted in the files I have.
Thanks for any help.
B
I'm trying to do a search and replace on the following:
net use [a-z]: \\\server\\(path|path1|path2|path3)
i.e find "net use r: \\server\path" and delete the line from the file
The server name is always the same and there are a number of paths as indicated above. The Batch Replace never seems to work so I'm guessing my regular expressions are incorrectly used. Any advice on what search command I should be using? There are up to 7 lines to be deleted in the files I have.
Thanks for any help.
B