I'm trying to automatize a CMD command process in windows
I try this:
import subprocess
cmd = 'net use * /delete'
p1 = subprocess.Popen(cmd,shell=True)
p1.wait()
I have this response:
Continuing will cancel the connections.
Do you want to continue this operation? (Y/N) [N]:
I want to put a Y for automatize the process