In at .BAT file, to get a file extension I am doing this:
for %%1 in (file_name.ext) do set ItemExt=%~x1
But that keeps the dot so the extension comes out ".ext". I want it to be just "ext".
Is there a way?
Getting the file extenseion
Moderator: DosItHelp
Re: Getting the file extenseion
set itemext=%itemext:~1%