I've encountered a bug with recursing directories and trying to get the path of the files, and a file name contains a ,
Batch file to reproduce the bug
The output is on my system (TCC 28.02.18 x64 / Windows 10 [Version 10.0.17763.1397])
The filename with , gets split if @full tries to get the path. Any workaround is welcome - thanks!
Batch file to reproduce the bug
Code:
@echo off
mkdir /ne testpath
touch /cq "testpath\File OK.txt"
touch /cq "testpath\File, BUG.txt"
do file in /s *.txt
echo %file
echo %@full[%file]
echo %@path[%@full[%file]]
enddo
The output is on my system (TCC 28.02.18 x64 / Windows 10 [Version 10.0.17763.1397])
Code:
File OK.txt
C:\Users\USER\AppData\Local\Temp\x\testpath\File OK.txt
C:\Users\USER\AppData\Local\Temp\x\testpath\
File, BUG.txt
C:\Users\USER\AppData\Local\Temp\x\testpath\BUG.txt\File
C:\Users\USER\AppData\Local\Temp\x\testpath\BUG.txt\
The filename with , gets split if @full tries to get the path. Any workaround is welcome - thanks!