in reply to Re: How can I use printf FORMAT strings for (Win32) shell globs?
in thread How can I use printf FORMAT strings for (Win32) shell globs?

With Win32's CMD.exe (or 4NT.exe or TCC.exe, which I'm generally using), the shell gets confused with that '%' (even when escaped, it seems)
Did you take into account that CMD escapes % differently from other characters? See e.g. on SS64 under "Escaping Percents"
  • Comment on Re^2: How can I use printf FORMAT strings for (Win32) shell globs?
  • Download Code

Replies are listed 'Best First'.
Re^3: How can I use printf FORMAT strings for (Win32) shell globs?
by ozboomer (Friar) on Jul 19, 2017 at 00:15 UTC

    Oh, yes... ...as does printf() (when using ' or ")... and different versions of 4NT/TCC/TCC-LE/etc, which also use different multi-command separators which may also include '%' characters...

    Anyway, with all this escaping, the (originally) simple approach is getting more and more complex to read and understand... particularly when I come back to this in a year or sumfin'...(!) ...and I want to try and avoid any (somehow) avoidable complexity for something as simple as 'globbing' a list of files(!)

    ...but point well-taken... Fanx!