I'm somewhat new with with Python, so hopefully my question is not entirely wrong. I have a python script, which scans the files inside a folder, and renames some of them based on a criteria. Like this:
files = [f for f in os.listdir("./Folder")]
...
...
...
os.rename("./Folder/" + old_name, "./Folder/" + new_name)
So, whenever I want to execute this script on files inside a folder, I need to place the script next to that folder, rename the folder to Folder
, and run the script. I was wondering, is there a way I can;
1- convert this script to a standalone .exe
file,
2- add it to the right-click context menu of Windows, in a way that when I right click on any folder with any name, I can see the .exe
file,
3- perform the renaming operation on the files inside that folder by clicking on the .exe
file.
Is what I'm asking even doable?