How to create a batch file to check the length of filename as below:
if file exist in c:\test folder with wildcard cs*.txt and filename length is 15 then rename the file
eg.filename = CSIYYMMDD0001.txt, rename to CSI0001.txt(remove the YYMMDD)
Thank you in advance.
Search found 1 match
- 07 Jun 2009 20:15
- Forum: DOS Batch Forum
- Topic: Check the length of filename
- Replies: 3
- Views: 9024