I’m looking for a script (Perl, Python or batch would be fine) that will go through a designated file tree and renames all the child files.
For example, Folder1>File1.anytype becomes Folder1>Folder1File1.anytype.
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You mention a batch file, which probably means that you are on Windows (I assume you refer to a .bat file). If you’re on a unix system, give this a shot:
Alternatively, this Python 3 program may do the trick (should also work on Windows…):
The directory layout before:
The directory layout after: