I tried both the shutil.move and os.rename both I get the same error.
shutil.move
os.rename
X = "E:/F100.txt" Y = "D:/F100.txt" try: