| 28 | |
| 29 | |
| 30 | def print_docs(): # Function to print the daily checks automatically |
| 31 | print("Printing Daily Check Sheets:") |
| 32 | # The command below passes the command line string to open word, open the document, print it then close word down |
| 33 | subprocess.Popen( |
| 34 | [ |
| 35 | r"C:\Program Files (x86)\Microsoft Office\Office14\winword.exe", |
| 36 | r"P:\Documentation\Daily Docs\Back office Daily Checks.doc", |
| 37 | "/mFilePrintDefault", |
| 38 | "/mFileExit", |
| 39 | ] |
| 40 | ).communicate() |
| 41 | |
| 42 | |
| 43 | def putty_sessions(conffilename): # Function to load the putty sessions I need |