Python Access Denied When Renaming A File -
i working on project school rename files , create , things files. of files in c drive , need around:
traceback (most recent call last): file "<pyshell#2>", line 1, in <module> os.rename('c:\windows\system32\c_950.nls' , 'c:\windows\system32\c_950.nls') windowserror: [error 5] access denied the files example changing own files. have admin control on computer need way give friend not have admin control. there semi-cheaty way around this? there way send commands command prompt through python?
not answering main question, execute commands on system, can use os.system, e.g.
>>> import os >>> os.system('net use')
Comments
Post a Comment