Seems Windows doesn't worry about this much and will try to correct any manual input of leading spaces in file names, but seems I've used a sync/copy app that has left many hundreds of files with leading spaces in file names (spread thru a large folder structure).
Will Everything facilitate identifying all the offending files with leading spaces (regardless of remainder of file name)?
Any suggestions for a rename app to strip off these offenders once found. I'm thinking it's going to be a PowerShell script, but want to use something else to identify the scope of the problem (and confirm eventual fix)
finding leading spaces in file names
Re: finding leading spaces in file names
With everything 1.5
will find files with leading spaces.
Advanced Rename will let you fix them. No other software needed.
Code: Select all
regex:^\s+.*
Advanced Rename will let you fix them. No other software needed.
Re: finding leading spaces in file names
Also try in 1.5:
nopath:^:" "
or
"\ "
nopath:^:" "
or
"\ "
Re: finding leading spaces in file names
In case you (= rgrichar) need some details:
- After typing in your search (see above), select all files ('CTRL + A')
- Press 'F2' (or: Menu:File > Rename)
- In the Rename dialog, enable Regular expressions
- Old Format:
^\s*
- New Format: (leave empty)
- Check the new filenames
- If all OK, press the OK button
- Done
And yet another option to search for names that start with a space (as if 3 options aren't enough ... )
Code: Select all
startwith:" "