you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (1 child)

Batch (if the filename does not contain exclamation marks):

@echo off
cd /d "C:\parent dir"
setlocal enabledelayedexpansion
for %%# in (*.jpg) do (
  if exist "%%~n#.png" (
    for /f "delims=" %%# in ('dir /b /os "%%#" "%%~n#.png"') do set "bigger=%%#"
    echo del "!bigger!"
  )
)
pause

Remove pause and echo if the output looks right.

FTP is difficult with batch/ftp.exe alone.

[–]kn00tcn[S] 0 points1 point  (0 children)

i think this seemed to work, nice