added SelectedAdresses.py

This commit is contained in:
schrom01 2022-04-08 18:02:29 +02:00
parent a83f8bb977
commit aed4258811
1 changed files with 16 additions and 0 deletions

16
SelectedAdresses.py Normal file
View File

@ -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])