I try to use "ren" command with Python 3.6.3 subprocess in Windows
Code:
import subprocess, os
path = r"C:\Users\user\Desktop\Temp"
subprocess.check_output(["ren", os.path.join(path, "ABC.txt"), os.path.join(path, "Hello.txt")], shell=True)
but I get Error: "subprocess.CalledProcessError"
Please help!!
thanks
CalledProcessErrorindicate?