The below code works perfect except if the folder has spaces in the name.
This small program looks for file names that are duplicated with different extensions.
example -- document.pdf document.tif
FOR /F %%i in ('dir /b /s *.pdf') do (
IF EXIST "%%~dpni.tif" (
echo "%%~dpni.tif" >>c:\test.txt
)
)
Any ideas on how to work with directory names that have spaces?
This small program looks for file names that are duplicated with different extensions.
example -- document.pdf document.tif
FOR /F %%i in ('dir /b /s *.pdf') do (
IF EXIST "%%~dpni.tif" (
echo "%%~dpni.tif" >>c:\test.txt
)
)
Any ideas on how to work with directory names that have spaces?