Created
January 7, 2024 16:29
-
-
Save zamabuvaraeu/c64f154dcdef848b1193368212747e03 to your computer and use it in GitHub Desktop.
Удаление файла без пары
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for %%I in ("*.dng") do ( | |
call :RemoveSingleFile %%I | |
) | |
exit /b 0 | |
:RemoveSingleFile | |
set FileNameOriginal=%1 | |
set FileNameWithoutDng=%FileNameOriginal:~0,-4% | |
set FileNameJpeg=%FileNameWithoutDng%.jpg | |
if not exist %FileNameJpeg% del %FileNameOriginal% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment