{"id":114,"date":"2021-09-03T01:59:07","date_gmt":"2021-09-03T01:59:07","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/dos-ibm-pc-5150-copy-entire-hard-drive-17771-html"},"modified":"2021-09-03T03:05:46","modified_gmt":"2021-09-03T03:05:46","slug":"dos-ibm-pc-5150-copy-entire-hard-drive-17771-html","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/dos\/ibm-pc-5150-copy-entire-hard-drive\/17771.html","title":{"rendered":"(IBM PC 5150) copy entire hard drive"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>Hello friends:<br \/>\nFirst sorry for my English.<\/p>\n<p>I need some help with a batch file<br \/>\nI have an IBM PC 5150 with a 20MB hard drive and want to make a copy of all files (subdirectories, hidden files and system files) to another hard drive d: automatically.<br \/>\nI do not want to use the ghost program and do not want to use some program to do a backup.<\/p>\n<p>I can boot my computer from a floppy or from the hard disk itself.<br \/>\nOn the hard drive I have the MS-DOS 4.10.<br \/>\nTo boot from the floppy I can do with the MS-DOS 3, MS-DOS 4.10, MS-DOS 5 and MS-DOS 6.22.<br \/>\nI know the file xcopy, but I need to also copy the hidden files and need the switch \/ h, but these versions of MS-DOS do not.<br \/>\nI&#8217;m thinking in this code but I need to improve because I need to copy all files automatically.<\/p>\n<p>@echo off<\/p>\n<p>if not exist *.* goto Error<br \/>\nattrib +a *.*<\/p>\n<p>:Go<\/p>\n<p>c: xcopy *.* d: \/m<\/p>\n<p>if errorlevel 5 goto Error<br \/>\nif errorlevel 4 goto Go<br \/>\nif errorlevel 1 goto Error<br \/>\nif errorlevel 0 goto End<\/p>\n<p>echo.<br \/>\necho \u00a1ERROR!<br \/>\ngoto End<\/p>\n<p>:End<br \/>\necho.<br \/>\necho \u00a1O.K!<\/p>\n<p>Please I need some help.<br \/>\nThanks and best regards<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","template":"","meta":{"inline_featured_image":false,"iawp_total_views":4},"question-category":[55],"question_tags":[],"class_list":["post-114","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\/114","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=114"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=114"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=114"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}