Page 1 of 1

How do I check the length of a filename in batch script?

Posted: 19 Aug 2022 01:44
by PiotrMP006
Hi

How do I check the length of a filename in batch script?

Re: How do I check the length of a filename in batch script?

Posted: 19 Aug 2022 02:29
by penpen
You could store the filename into an environment variable and then check the length of that string using the :strlen-function.

penpen