How do I get an extension if the filename has two dots?
ex.
Test.aaa.txt
%~r1 -> aaa.txt
Please help me
How do I get an extension if the filename has two dots?
Moderator: DosItHelp
-
- Posts: 31
- Joined: 08 Sep 2017 06:10
-
- Expert
- Posts: 1166
- Joined: 06 Sep 2013 21:28
- Location: Virginia, United States
Re: How do I get an extension if the filename has two dots?
Why would .aaa.txt be the extension instead of just .txt? What if you had A.File.Name.Like.This.2020.HEVC.x265.mkv?
Also, %~r doesn't work because %~r isn't a valid variable substitution command. %~x gets the extension.
Also, %~r doesn't work because %~r isn't a valid variable substitution command. %~x gets the extension.