Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import subprocess
- networkPath = r"Reporting"
- user="----"
- password="----"
- winCMD = 'NET USE V:' + networkPath + ' /User:' + user + ' ' + password
- subprocess.Popen(winCMD, stdout=subprocess.PIPE, shell=True)
- doc.save(r"C:\Users\----\Desktop\Double Check Royalties\%s.pdf" % (file_output))
- shutil.copy2(r"C:\Users\----\Desktop\Double Check Royalties\%s.pdf" % (file_output), "V:\\" + networkPath + "\%s\%s.pdf" % (save_file_string, file_output))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement