RegEx To Find Path/FileName Length Greater Than 260 Char's
-
- Posts: 12
- Joined: 29 Dec 2006, 21:35
RegEx To Find Path/FileName Length Greater Than 260 Char's
Does anyone have or can write a RegEx for the Find Dialog to search for file names (file name and patch combined length) that is greater than 260 characters.
Thanks!
KnightBall
KnightBall
-
- Posts: 12
- Joined: 29 Dec 2006, 21:35
-
- Posts: 12
- Joined: 29 Dec 2006, 21:35
Firstly, the Find dialog doesn't utilize regular expressions for name searching, only for content searching.
Secondly, the Find dialog can't search in paths, only names.
However, there is a way to hunt them down. Just choose a directory where you want to search and copy/move it. The operation will stop on every illegal name (including names with foreign Unicode characters, unfortunately).
Secondly, the Find dialog can't search in paths, only names.
Assuming that path of more than 260 characters is illegal for Windows (for most of it, anyway) the solution is simple: just search for anything and illegal paths will be logged in the Find Log (Ctrl+L, or click the flashing yellow triangle with an exclamation mark).knightball wrote:Does anyone have or can write a RegEx for the Find Dialog to search for file names (file name and patch combined length) that is greater than 260 characters.
I'm not sure, because I couldn't create a file with any illegal character but '?', and that doesn't help much. You certainly can't search for '*' and '?', because they will be handled as wildcards. For the rest is Find too smart - an error message pops up.knightball wrote:and to search (a different search) for characters that are illegal in windows vista
However, there is a way to hunt them down. Just choose a directory where you want to search and copy/move it. The operation will stop on every illegal name (including names with foreign Unicode characters, unfortunately).
Ελληνικά rulez.