{"id":2222,"date":"2021-10-27T23:39:13","date_gmt":"2021-10-27T23:39:13","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=2222"},"modified":"2021-10-27T23:40:02","modified_gmt":"2021-10-27T23:40:02","slug":"solved-xcopy-file-not-found","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/programming\/xcopy-file-not-found\/26049.html","title":{"rendered":"Solved Xcopy &#8211; File Not Found?"},"content":{"rendered":"<p>ok, i have a folder named &#8220;FOLDER&#8221; which is located at c:\\FOLDER<br \/>\nThis folder contains another folder named &#8220;CONFIG&#8221; and a batch file &#8220;TEST.bat&#8221;<\/p>\n<p>the TEST.bat has this code:<\/p>\n<p><b><br \/>\nxcopy config C:\\1\/e\/y\/v\/i\/s<br \/>\npause<\/b><\/p>\n<p>This code runs properly and it does what i want to do ( copy CONFIG files to C:\\1 )<br \/>\nBut from microsoft&#8217;s website, it says that the syntax should be:<\/p>\n<p><b><br \/>\nxcopy \\config C:\\1\/e\/y\/v\/i\/s<br \/>\npause<\/b><\/p>\n<p>This code produces an error:<\/p>\n<p><b>C:\\FOLDER&gt;xcopy \\config C:\\1\/e\/y\/v\/i\/s<br \/>\nFile not found &#8211; config<br \/>\n0 File(s) copied<\/b><\/p>\n<p><b>C:\\FOLDER&gt;pause<br \/>\nPress any key to continue . . .<\/b><\/p>\n<p>&nbsp;<\/p>\n<p>Is there something wrong with my computer?<br \/>\nI don&#8217;t know why i get error when I add &#8220;<b>\\<\/b>&#8221; on the source.<br \/>\nI don&#8217;t want to specify the full path <b>c:\\folder\\config<\/b> because i want a batch file that will work regardless of the path of the directory &#8220;<b>FOLDER<\/b>&#8220;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"iawp_total_views":7},"question-category":[55],"question_tags":[],"class_list":["post-2222","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\/2222","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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/comments?post=2222"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=2222"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=2222"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=2222"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}