Personal web page: Emmanuel Branlard

DOS - Get basename of a file


FOR %%i IN ("%FILENAME%") DO ( SET BASENAME=%%~ni)