Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. import subprocess
  2.  
  3. networkPath = r"Reporting"
  4. user="----"
  5. password="----"
  6.  
  7. winCMD = 'NET USE V:' + networkPath + ' /User:' + user + ' ' + password
  8. subprocess.Popen(winCMD, stdout=subprocess.PIPE, shell=True)
  9.  
  10. doc.save(r"C:\Users\----\Desktop\Double Check Royalties\%s.pdf" % (file_output))
  11. 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