Is there an easy way to get to the basename (file name without extension) of a DOS file name using the DOS BAT command language?
I agree: format c:\\ is
format c:\\
in .bat files
for /F "delims=" %%i in (%FILE_path%) do @echo "%%~ni"
in command-prompt use % instead of %%
%
%%
(thanks to @Ciantic)