Windows Command Shell Example- If then else – Replace Character – if exist – extract file extension

@echo off

set fname=%1

REM Slash durch Backslash ersetzen
set fname=%fname:/=\%

REM Endung otrkey hat 6 Stellen
set suffix=%fname:~-6%

echo.
echo