문제

I have a list of unc paths:

\\server1\share1
\\server1\share1\subfolder1
\\server1\share2\subfolder1
\\server2\share1

I want only to find:

\\server1\share1\subfolder1
\\server1\share2\subfolder1

I tried:

findstr /r /i "\\\\*.*\\*.*\\*.*" 

but it gives me the entire list.

도움이 되었습니까?

해결책

FINDSTR /r /i "\\\\.*\\.*\\.*"

\ escapes \...

다른 팁

findstr /s /p "theword" "\machinename\sharename*" /s is recursive /p is skip binary

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top