{"id":9,"date":"2005-05-03T15:27:05","date_gmt":"2005-05-03T20:27:05","guid":{"rendered":"http:\/\/stein.everybody.org\/brain\/batch-file-backup\/"},"modified":"2011-03-10T10:57:35","modified_gmt":"2011-03-10T15:57:35","slug":"batch-file-backup","status":"publish","type":"post","link":"https:\/\/jeremystein.com\/brain\/batch-file-backup\/","title":{"rendered":"Batch File Backup"},"content":{"rendered":"<p>To use a (Windows 2000\/XP) batch file to back up some other file, do something like this:<\/p>\n<p>FOR \/F &#8220;tokens=2-6 delims=\/: &#8221; %%A IN (&#8220;%DATE% %TIME%&#8221;) DO COPY &#8220;ImportantFile&#8221; &#8220;ImportantFile_%%C%%A%%B_%%D%%E&#8221;<\/p>\n<p>If you also want to input some information to append to the filename, remember that the Set command can take a \/P option.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To use a (Windows 2000\/XP) batch file to back up some other file, do something like this: FOR \/F &#8220;tokens=2-6 delims=\/: &#8221; %%A IN (&#8220;%DATE% %TIME%&#8221;) DO COPY &#8220;ImportantFile&#8221; &#8220;ImportantFile_%%C%%A%%B_%%D%%E&#8221; If you also want to input some information to append to the filename, remember that the Set command can take a \/P option.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[],"class_list":["post-9","post","type-post","status-publish","format-standard","hentry","category-windows-batch-files"],"_links":{"self":[{"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/posts\/9","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/comments?post=9"}],"version-history":[{"count":0,"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/posts\/9\/revisions"}],"wp:attachment":[{"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/media?parent=9"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/categories?post=9"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/tags?post=9"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}