Hi
How do I check the length of a filename in batch script?
How do I check the length of a filename in batch script?
-
- Posts: 13
- Joined: 2021-Sep-01, 10:57 am
- Simon Sheppard
- Posts: 153
- Joined: 2021-Jul-10, 7:46 pm
- Contact:
Re: How do I check the length of a filename in batch script?
Assuming you have the full path/filename, then use Parameter Extensions to split out just the filename, or filename+extension.
Then to get the length use Strlen
Then to get the length use Strlen