From aed4258811b5d9c89a241624cec11206315740d9 Mon Sep 17 00:00:00 2001 From: schrom01 Date: Fri, 8 Apr 2022 18:02:29 +0200 Subject: [PATCH] added SelectedAdresses.py --- SelectedAdresses.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 SelectedAdresses.py diff --git a/SelectedAdresses.py b/SelectedAdresses.py new file mode 100644 index 0000000..c33856f --- /dev/null +++ b/SelectedAdresses.py @@ -0,0 +1,16 @@ +import os +import shutil +import tkinter +from tkinter import filedialog + +root = tkinter.Tk() +print("select File:") +filename_Filelist = filedialog.askopenfilename() +root.withdraw + +adress_file = open(filename_Filelist, "r") +address_list = adress_file.read().splitlines() + +for adress in address_list: + filenames = adress.split(";") + os.rename(filenames[0], filenames[1]) \ No newline at end of file