batch-rename

Change the file name by using python

Change the file name by using python Question: I would like to change the file name in the folder, there are jpg file but corrupted with product id number. I tried to rename it and delete the string after ".jpg" by using python, here is the code, but there is no any change. Do you …

Total answers: 1

How to apply a script to all files in extension and change names accordingly?

How to apply a script to all files in extension and change names accordingly? Question: I have a script which does a certain transformation to a file. pipeline.load_files(‘txt’, ‘1.txt’) pipeline.transform(‘function0′,’file.jpg’, ‘1.txt’) pipeline.write(‘txt’, ‘result.txt’, opt={‘c’:None}) pipeline.score(function=’function1′, file =’file.jpg’) pipeline.score(function=’function2′, file =’file.jpg’) pipeline.write_csv(‘result.csv’) Now I want to use this script for all 100 txt files (1.txt-100.txt) in …

Total answers: 1

batch renaming 100K files with python

batch renaming 100K files with python Question: I have a folder with over 100,000 files, all numbered with the same stub, but without leading zeros, and the numbers aren’t always contiguous (usually they are, but there are gaps) e.g: file-21.png, file-22.png, file-640.png, file-641.png, file-642.png, file-645.png, file-2130.png, file-2131.png, file-3012.png, etc. I would like to batch process …

Total answers: 7

Batch Renaming of Files in a Directory

Batch Renaming of Files in a Directory Question: Is there an easy way to rename a group of files already contained in a directory, using Python? Example: I have a directory full of *.doc files and I want to rename them in a consistent way. X.doc -> “new(X).doc” Y.doc -> “new(Y).doc” Asked By: Nate || …

Total answers: 14