{"id":9541,"date":"2021-12-01T17:19:30","date_gmt":"2021-12-01T17:19:30","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=9541"},"modified":"2021-12-01T17:24:37","modified_gmt":"2021-12-01T17:24:37","slug":"bat-upload-to-ftp-entire-folder-help","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/programming\/bat-upload-to-ftp-entire-folder-help\/20758.html","title":{"rendered":".Bat Upload To FTP Entire Folder &#8211; HELP!"},"content":{"rendered":"<p>This is my code so far:<\/p>\n<p>@Echo Off<br \/>\nEcho *NAME*&gt; ftpcmd.txt<br \/>\necho *PASSWORD*&gt;&gt; ftpcmd.txt<br \/>\necho binary&gt;&gt; ftpcmd.txt<br \/>\necho prompt n&gt;&gt;ftpcmd.txt<br \/>\necho mget *.html&gt;&gt; ftpcmd.txt<br \/>\necho bye &gt;&gt; ftpcmd.txt<br \/>\nftp -s:ftpcmd.txt ftp.drivehq.com<br \/>\ndel ftpcmd.txt<\/p>\n<p>I&#8217;m trying to get *\\My Documents\\My Chatlogs\\ sent to the FTP, the entire folder with subfolders.<\/p>\n<p>If I use:<br \/>\necho cd My Documents\\My Chatlogs<br \/>\nwith<br \/>\necho mpget *.*<br \/>\nIt still doesn&#8217;t work.<\/p>\n<p>It either will say &#8216;Permission Denied&#8217;, or it just won&#8217;t transfer it.<\/p>\n<p>So how can I get a .bat to upload an ENTIRE folder and subfolders to a remote FTP?<\/p>\n<p>Thanks.<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"iawp_total_views":2},"question-category":[55],"question_tags":[],"class_list":["post-9541","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\/9541","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=9541"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=9541"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=9541"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=9541"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}