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
Search and delete on unc paths
Looking at past replies it'll probably be easier for me to delete the whole line when finding just the path.
Data example:
net use r: \\server\path
net use q: \\server\path1
net use r: \\server\path2
Search for:
\\server\path
Search expression (I've tried the following but it's not working):
.*server\\path.*\r\n
Data example:
net use r: \\server\path
net use q: \\server\path1
net use r: \\server\path2
Search for:
\\server\path
Search expression (I've tried the following but it's not working):
.*server\\path.*\r\n