BRU: Renaming file with final dot or period
As it is, Everything has no problem finding them.
Code: Select all
regex:^.*\.$
Hmm... I did not try UNC paths here... nope, that didn't work either.
Code: Select all
regex:^.*\.$
Code: Select all
copy "\\?\C:\temp\period." "\\?\C:\test\period."
Nope, didn't succeed ... but didnt try very long as there is a workaround: a script (as I solve almost everything with a scriptNotNull wrote:Will test if I can make Everything handle those filenames, but I doubt it ..
endwith:.
Code: Select all
@echo off
setlocal
pushd "%~dp0"
for /f "delims=" %%x in (period.txt) do call :AXI "%%x"
goto :eof
::============================================
:AXI
::============================================
set THISFILE=%~1
copy "\\?\%THISFILE%" "\\?\%THISFILE%___"
if exist "\\?\%THISFILE%___" del "\\?\%THISFILE%"
goto :EOF
Including support for very long paths?void wrote:I've added the \\?\ prefix to filenames ending with . or space for the next version of Everything.
To be clear, when you spoke at the time, you were speaking of Everything 1.5?I've added the \\?\ prefix to filenames ending with . or space for the next version of Everything.
Code: Select all
endwith:" " | startwith:" "
Code: Select all
gc .\spaces.txt | % {gi "\\?\$_*"} | % {$NewName = $_.DirectoryName + "\" + $_.Name.trim(); rename-item $_* -newname "$NewName" -whatif}
endwith:" "|startwith:" "
^ *(.*?) *$
\1
Yes, sorry.To be clear, when you spoke at the time, you were speaking of Everything 1.5?