{"id":851,"date":"2023-11-10T22:15:56","date_gmt":"2023-11-10T22:15:56","guid":{"rendered":"https:\/\/lavenhamit.uk\/wrdprss\/?p=851"},"modified":"2024-02-25T16:21:00","modified_gmt":"2024-02-25T16:21:00","slug":"windows-robocopy-command-common-gotchas","status":"publish","type":"post","link":"https:\/\/lavenhamit.uk\/wrdprss\/?p=851","title":{"rendered":"Windows Robocopy command common usage issues problems &#038; gotchas"},"content":{"rendered":"\n<p>Enclosing the source or destination in double quotes allows the use of paths with spaces in the folder names but DO NOT end with a trailing backslash &#8216;\\&#8217; as this will be interpreted as an escape character.<\/p>\n\n\n\n<p>When using the task scheduler to run a robocopy command script be aware that using the account credentials of the logged-in user may be necessary for access to network drives referred to by the command. An administrator account may not have the necessary permissions.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Syntax\n      ROBOCOPY Source_folder Destination_folder &#91;files_to_copy] &#91;<a href=\"https:\/\/ss64.com\/nt\/robocopy.html\">options<\/a>]\n\n      ROBOCOPY \"M:\\\" \"X:Destination Folder\\\"<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\"> <strong>DON'T USE EITHER OF THESE<\/strong><\/mark>\n\n      ROBOCOPY M:\\ \"X:Destination Folder\" <strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\">THIS WORKS<\/mark><\/strong><\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Enclosing the source or destination in double quotes allows the use of paths with spaces in the folder names but [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[67,103],"tags":[100],"class_list":["post-851","post","type-post","status-publish","format-standard","hentry","category-windows-batch-files","category-windows-commands","tag-robocopy"],"_links":{"self":[{"href":"https:\/\/lavenhamit.uk\/wrdprss\/index.php?rest_route=\/wp\/v2\/posts\/851","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lavenhamit.uk\/wrdprss\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lavenhamit.uk\/wrdprss\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lavenhamit.uk\/wrdprss\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lavenhamit.uk\/wrdprss\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=851"}],"version-history":[{"count":3,"href":"https:\/\/lavenhamit.uk\/wrdprss\/index.php?rest_route=\/wp\/v2\/posts\/851\/revisions"}],"predecessor-version":[{"id":855,"href":"https:\/\/lavenhamit.uk\/wrdprss\/index.php?rest_route=\/wp\/v2\/posts\/851\/revisions\/855"}],"wp:attachment":[{"href":"https:\/\/lavenhamit.uk\/wrdprss\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=851"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lavenhamit.uk\/wrdprss\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=851"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lavenhamit.uk\/wrdprss\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=851"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}