1
0 Comments

At the moment, I am facing a problem with a DOS batch script that I have been developing, and I require assistance with changing the names of files.

I am looking for a specific pattern for renaming the files, which involves adding the prefix “kyt-” before the last word in the original file names. For instance, if the original file name is longer than 30 characters, I only wrote the first four characters.

As an example, if the original file name is “pajiro kart 05 abd.txt”, the desired result after renaming would be “pajiro kart 05 kyt-abd.txt”.

Another example would be if the original file name is “pajiro kart 05 acd.txt”, the desired result after renaming would be “pajiro kart 05 kyt-acd.txt”.

Askify Moderator Edited question April 27, 2023