{"id":9551,"date":"2021-12-01T17:32:48","date_gmt":"2021-12-01T17:32:48","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=9551"},"modified":"2021-12-01T17:33:17","modified_gmt":"2021-12-01T17:33:17","slug":"how-to-create-automatic-batch-file-to-backup-outlook-pst","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/programming\/how-to-create-automatic-batch-file-to-backup-outlook-pst\/29318.html","title":{"rendered":"How To Create Automatic Batch File To Backup Outlook Pst"},"content":{"rendered":"<p>Hi,<br \/>\nI have simple batch file to copy a Outlook pst file to an external drive. The pst file is copied but the taskeng.exe window &#8220;hangs&#8221; and does not continue to restart outlook and therefore close on its own. The pst file is over 4Gb. I would also like to know how to prevent the taskeng.exe windows from popping up as well. Any help is appreciated, thank you!<\/p>\n<p>:: Backup pst file to Server external drive<br \/>\n@echo off<br \/>\nsetlocal EnableDelayedExpansion<br \/>\nstart &#8220;&#8221; &#8220;C:\\Program Files (x86)\\Microsoft Office\\Office12\\Outlook.exe&#8221;<br \/>\ntaskkill \/im outlook.exe \/f<br \/>\n@ping 192.168.1.1 -n 5 -w 1000&gt;nul<br \/>\n@ping 192.168.1.1 -n 5 -w 1000&gt;nul<br \/>\nrobocopy &#8220;C:\\Users.pst&#8221; &#8220;\\\\SERVER\\Outlook Backup\\user.pst&#8221;<br \/>\nstart outlook.exe<br \/>\ncls<br \/>\n@exit<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"iawp_total_views":17},"question-category":[55],"question_tags":[],"class_list":["post-9551","question","type-question","status-publish","hentry","question-category-programming"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question\/9551","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question"}],"about":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/types\/question"}],"author":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/comments?post=9551"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=9551"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=9551"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=9551"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}