If I understand you correctly, you want to save the first two characters to a tag in the file, such as
$set(my_special_tag,$left(%_filename%,2))? If so, I can’t think of a way to do it because you can’t set a tag value in the file naming script, and the
%_filename% variable isn’t available in the tagging scripts.
If I misunderstood, and you want the new file name to have the same two-character track number as the original file name, that should be easy enough. You can get the first two characters by using
$left(%_filename%,2) in your naming script, and then use that value.
_filename variable in the Basic Variables section of the Picard Docs for more information.