<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-5657276.post109875622527781427..comments</id><updated>2010-01-03T19:12:45.343-08:00</updated><title type='text'>Comments on Letters from the End of Civilization: DOS Batch File Fun: Creating a subdirectory named ...</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.209software.com/feeds/109875622527781427/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5657276/109875622527781427/comments/default'/><link rel='alternate' type='text/html' href='http://blog.209software.com/2004/10/dos-batch-file-fun-creating.html'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/5657276/109875622527781427/comments/default?start-index=26&amp;max-results=25'/><author><name>Some Yahoo</name><uri>http://www.blogger.com/profile/12351196281372109140</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>27</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5657276.post-6455974607619480358</id><published>2009-04-15T07:09:00.000-07:00</published><updated>2009-04-15T07:09:00.000-07:00</updated><title type='text'>Thanks for your post! 

I was looking something li...</title><summary type='text'>Thanks for your post! &lt;br /&gt;&lt;br /&gt;I was looking something like this to use in dos systems to do automatic backups with date and timestamp. If copy/paste the following line in dos console, it will show the date, time in my desired format and also the time in standard format in order to make a comparison:&lt;br /&gt;&lt;br /&gt;echo %date:~-4,4%.%date:~-10,2%.%date:~-7,2% %time:~-0,&lt;br /&gt;2%%time:~3,-6%%time:~6</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5657276/109875622527781427/comments/default/6455974607619480358'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5657276/109875622527781427/comments/default/6455974607619480358'/><link rel='alternate' type='text/html' href='http://blog.209software.com/2004/10/dos-batch-file-fun-creating.html?showComment=1239804540000#c6455974607619480358' title=''/><author><name>Opita</name><uri>http://www.blogger.com/profile/12230070984930684454</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.209software.com/2004/10/dos-batch-file-fun-creating.html' ref='tag:blogger.com,1999:blog-5657276.post-109875622527781427' source='http://www.blogger.com/feeds/5657276/posts/default/109875622527781427' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-5657276.post-2130575208132807395</id><published>2008-08-28T14:10:28.864-07:00</published><updated>2008-08-28T14:10:28.864-07:00</updated><title type='text'>Geez, there are at least 10 examples here but once...</title><summary type='text'>Geez, there are at least 10 examples here but once you construct a date string you can use it in any DOS command.&lt;BR/&gt;&lt;BR/&gt;echo %MyDirectoryname%&lt;BR/&gt;&lt;BR/&gt;md %MyDirectoryname%&lt;BR/&gt;&lt;BR/&gt;copy * %MyDirectoryname%&lt;BR/&gt;&lt;BR/&gt;Notepad.exe  %MyDirectoryname%\ABC.TXT&lt;BR/&gt;&lt;BR/&gt;Winzip  %MyDirectoryname% &lt;BR/&gt;&lt;BR/&gt;etc.</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5657276/109875622527781427/comments/default/2130575208132807395'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5657276/109875622527781427/comments/default/2130575208132807395'/><link rel='alternate' type='text/html' href='http://blog.209software.com/2004/10/dos-batch-file-fun-creating.html?showComment=1219957828864#c2130575208132807395' title=''/><author><name>Some Yahoo</name><uri>http://www.blogger.com/profile/12351196281372109140</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='00581425146657426231'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.209software.com/2004/10/dos-batch-file-fun-creating.html' ref='tag:blogger.com,1999:blog-5657276.post-109875622527781427' source='http://www.blogger.com/feeds/5657276/posts/default/109875622527781427' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-5657276.post-2338796318213204260</id><published>2008-08-28T13:23:00.000-07:00</published><updated>2008-08-28T13:23:00.000-07:00</updated><title type='text'>How would you change to this newly created subdire...</title><summary type='text'>How would you change to this newly created subdirectory?  I would like to change to this subdirectory so that I can copy files into this newly created subdirectory.  Thanks for your help.</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5657276/109875622527781427/comments/default/2338796318213204260'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5657276/109875622527781427/comments/default/2338796318213204260'/><link rel='alternate' type='text/html' href='http://blog.209software.com/2004/10/dos-batch-file-fun-creating.html?showComment=1219954980000#c2338796318213204260' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.209software.com/2004/10/dos-batch-file-fun-creating.html' ref='tag:blogger.com,1999:blog-5657276.post-109875622527781427' source='http://www.blogger.com/feeds/5657276/posts/default/109875622527781427' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-5657276.post-6262196665521326518</id><published>2008-08-05T11:23:00.000-07:00</published><updated>2008-08-05T11:23:00.000-07:00</updated><title type='text'>toolman's fix for the invalid number issue didn't ...</title><summary type='text'>toolman's fix for the invalid number issue didn't help me b/c it changed month = 10 into month = 1&lt;BR/&gt;&lt;BR/&gt;here is my script:&lt;BR/&gt;&lt;BR/&gt;@echo off&lt;BR/&gt;&lt;BR/&gt;:: find the year&lt;BR/&gt;set year=%DATE:~10,4%&lt;BR/&gt;&lt;BR/&gt;:: find the current month&lt;BR/&gt;set /a m1=%DATE:~4,1%&lt;BR/&gt;IF %m1% ==0 (set month=%DATE:~5,1%) ELSE (set month=%DATE:~4,2%)&lt;BR/&gt;&lt;BR/&gt;echo  current month&lt;BR/&gt;echo ------------------&lt;BR/&gt;echo  </summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5657276/109875622527781427/comments/default/6262196665521326518'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5657276/109875622527781427/comments/default/6262196665521326518'/><link rel='alternate' type='text/html' href='http://blog.209software.com/2004/10/dos-batch-file-fun-creating.html?showComment=1217960580000#c6262196665521326518' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.209software.com/2004/10/dos-batch-file-fun-creating.html' ref='tag:blogger.com,1999:blog-5657276.post-109875622527781427' source='http://www.blogger.com/feeds/5657276/posts/default/109875622527781427' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-5657276.post-5063883475911940984</id><published>2008-08-05T09:24:00.000-07:00</published><updated>2008-08-05T09:24:00.000-07:00</updated><title type='text'>For the invalid number issue, try this...set month...</title><summary type='text'>For the invalid number issue, try this...&lt;BR/&gt;&lt;BR/&gt;set month=%month:0=%&lt;BR/&gt;&lt;BR/&gt;...then try SET /a MONTH=%MONTH%-1&lt;BR/&gt;&lt;BR/&gt;It doesn't like the 0, so this will remove it.&lt;BR/&gt;&lt;BR/&gt;Thanks to evryone on this post...this has been a great help!</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5657276/109875622527781427/comments/default/5063883475911940984'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5657276/109875622527781427/comments/default/5063883475911940984'/><link rel='alternate' type='text/html' href='http://blog.209software.com/2004/10/dos-batch-file-fun-creating.html?showComment=1217953440000#c5063883475911940984' title=''/><author><name>toolman</name><uri>http://www.blogger.com/profile/14108959853195022498</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.209software.com/2004/10/dos-batch-file-fun-creating.html' ref='tag:blogger.com,1999:blog-5657276.post-109875622527781427' source='http://www.blogger.com/feeds/5657276/posts/default/109875622527781427' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-5657276.post-2304793732159050094</id><published>2008-08-05T05:44:00.000-07:00</published><updated>2008-08-05T05:44:00.000-07:00</updated><title type='text'>This was all very useful.  Thanks to all.I need ye...</title><summary type='text'>This was all very useful.  Thanks to all.&lt;BR/&gt;&lt;BR/&gt;I need yesterday's date for an automated daily function too and elected for a quick cheat solution!&lt;BR/&gt;&lt;BR/&gt;Rather than calculating month-1, adjusting for January, calculating day-1 and wondering how many days  previous month had (30,31,28 ...)&lt;BR/&gt;I calculate the value I will need tomorrow from today's date and store it in a variable , and so </summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5657276/109875622527781427/comments/default/2304793732159050094'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5657276/109875622527781427/comments/default/2304793732159050094'/><link rel='alternate' type='text/html' href='http://blog.209software.com/2004/10/dos-batch-file-fun-creating.html?showComment=1217940240000#c2304793732159050094' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.209software.com/2004/10/dos-batch-file-fun-creating.html' ref='tag:blogger.com,1999:blog-5657276.post-109875622527781427' source='http://www.blogger.com/feeds/5657276/posts/default/109875622527781427' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-5657276.post-6108238293922652886</id><published>2008-08-01T08:30:00.000-07:00</published><updated>2008-08-01T08:30:00.000-07:00</updated><title type='text'>SET /a MONTH=%MONTH%-1returns the errorInvalid num...</title><summary type='text'>SET /a MONTH=%MONTH%-1&lt;BR/&gt;&lt;BR/&gt;returns the error&lt;BR/&gt;&lt;BR/&gt;Invalid number.  Numeric constants are either decimal (17),&lt;BR/&gt;hexadecimal (0x11), or octal (021).</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5657276/109875622527781427/comments/default/6108238293922652886'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5657276/109875622527781427/comments/default/6108238293922652886'/><link rel='alternate' type='text/html' href='http://blog.209software.com/2004/10/dos-batch-file-fun-creating.html?showComment=1217604600000#c6108238293922652886' title=''/><author><name>Nivek Nosnhoj</name><uri>http://www.blogger.com/profile/09183588445770071132</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.209software.com/2004/10/dos-batch-file-fun-creating.html' ref='tag:blogger.com,1999:blog-5657276.post-109875622527781427' source='http://www.blogger.com/feeds/5657276/posts/default/109875622527781427' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-5657276.post-9188512510586728259</id><published>2008-06-09T10:02:42.148-07:00</published><updated>2008-06-09T10:02:42.148-07:00</updated><title type='text'>Everything you needed was already here but this wi...</title><summary type='text'>Everything you needed was already here but this will solve your problem.  &lt;BR/&gt;&lt;BR/&gt;Note that my computer name does not conform to yours, so I created a variable named "Computer"&lt;BR/&gt;&lt;BR/&gt;&lt;B&gt;&lt;BR/&gt;@echo off&lt;BR/&gt;&lt;BR/&gt;set Computer=123-456-789&lt;BR/&gt;echo %Computer%&lt;BR/&gt;&lt;BR/&gt;set A=%Computer:~0,3%&lt;BR/&gt;set B=%Computer:~4,3%&lt;BR/&gt;set C=%Computer:~8,3%&lt;BR/&gt;&lt;BR/&gt;echo %A%     %B%     %C%&lt;BR/&gt;&lt;BR/&gt;pause&lt;BR/&gt;&lt;/B&gt;</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5657276/109875622527781427/comments/default/9188512510586728259'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5657276/109875622527781427/comments/default/9188512510586728259'/><link rel='alternate' type='text/html' href='http://blog.209software.com/2004/10/dos-batch-file-fun-creating.html?showComment=1213030962148#c9188512510586728259' title=''/><author><name>Some Yahoo</name><uri>http://www.blogger.com/profile/12351196281372109140</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='00581425146657426231'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.209software.com/2004/10/dos-batch-file-fun-creating.html' ref='tag:blogger.com,1999:blog-5657276.post-109875622527781427' source='http://www.blogger.com/feeds/5657276/posts/default/109875622527781427' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-5657276.post-1318360644276249708</id><published>2008-06-09T07:39:00.000-07:00</published><updated>2008-06-09T07:39:00.000-07:00</updated><title type='text'>What I need to do is to parse %ComputerName% to cr...</title><summary type='text'>What I need to do is to parse %ComputerName% to create another variable to be used in a batch process. I need various parts of the variable but not the whole thing. The variable result would be in the fornmat xxx-xxx-xxx and I would need the first 3 characters at one point and the second 3 characters at another. I would certainly appreciate it if one of you caouls put me on the right track for </summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5657276/109875622527781427/comments/default/1318360644276249708'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5657276/109875622527781427/comments/default/1318360644276249708'/><link rel='alternate' type='text/html' href='http://blog.209software.com/2004/10/dos-batch-file-fun-creating.html?showComment=1213022340000#c1318360644276249708' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.209software.com/2004/10/dos-batch-file-fun-creating.html' ref='tag:blogger.com,1999:blog-5657276.post-109875622527781427' source='http://www.blogger.com/feeds/5657276/posts/default/109875622527781427' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-5657276.post-1347162954688462761</id><published>2008-05-02T11:44:00.000-07:00</published><updated>2008-05-02T11:44:00.000-07:00</updated><title type='text'>Thanks !A priceless public service !</title><summary type='text'>Thanks !&lt;BR/&gt;&lt;BR/&gt;A priceless public service !</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5657276/109875622527781427/comments/default/1347162954688462761'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5657276/109875622527781427/comments/default/1347162954688462761'/><link rel='alternate' type='text/html' href='http://blog.209software.com/2004/10/dos-batch-file-fun-creating.html?showComment=1209753840000#c1347162954688462761' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.209software.com/2004/10/dos-batch-file-fun-creating.html' ref='tag:blogger.com,1999:blog-5657276.post-109875622527781427' source='http://www.blogger.com/feeds/5657276/posts/default/109875622527781427' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-5657276.post-3958893361922886406</id><published>2008-04-18T10:59:00.000-07:00</published><updated>2008-04-18T10:59:00.000-07:00</updated><title type='text'>This has certainly come in handy!  First off, I wa...</title><summary type='text'>This has certainly come in handy!  First off, I was trying to create a text file with a list of Excel document paths within directories, along with their last-modified dates.  The only way I could figure how to do this was to append to a text file, which would mean I would have to delete the file each time.  However, with using a date/time-stamp for the file name I no longer need to worry about </summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5657276/109875622527781427/comments/default/3958893361922886406'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5657276/109875622527781427/comments/default/3958893361922886406'/><link rel='alternate' type='text/html' href='http://blog.209software.com/2004/10/dos-batch-file-fun-creating.html?showComment=1208541540000#c3958893361922886406' title=''/><author><name>davelr</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.209software.com/2004/10/dos-batch-file-fun-creating.html' ref='tag:blogger.com,1999:blog-5657276.post-109875622527781427' source='http://www.blogger.com/feeds/5657276/posts/default/109875622527781427' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-5657276.post-4859857554132434543</id><published>2008-04-16T23:33:00.000-07:00</published><updated>2008-04-16T23:33:00.000-07:00</updated><title type='text'>Excellent, just excellent</title><summary type='text'>Excellent, just excellent</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5657276/109875622527781427/comments/default/4859857554132434543'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5657276/109875622527781427/comments/default/4859857554132434543'/><link rel='alternate' type='text/html' href='http://blog.209software.com/2004/10/dos-batch-file-fun-creating.html?showComment=1208413980000#c4859857554132434543' title=''/><author><name>joawhzr</name><uri>http://www.blogger.com/profile/05050039414533679539</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.209software.com/2004/10/dos-batch-file-fun-creating.html' ref='tag:blogger.com,1999:blog-5657276.post-109875622527781427' source='http://www.blogger.com/feeds/5657276/posts/default/109875622527781427' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-5657276.post-1817253334962010394</id><published>2008-02-27T01:51:00.000-08:00</published><updated>2008-02-27T01:51:00.000-08:00</updated><title type='text'>Thanks for all the information. I will book mark t...</title><summary type='text'>Thanks for all the information. I will book mark this page for future reference.</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5657276/109875622527781427/comments/default/1817253334962010394'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5657276/109875622527781427/comments/default/1817253334962010394'/><link rel='alternate' type='text/html' href='http://blog.209software.com/2004/10/dos-batch-file-fun-creating.html?showComment=1204105860000#c1817253334962010394' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.209software.com/2004/10/dos-batch-file-fun-creating.html' ref='tag:blogger.com,1999:blog-5657276.post-109875622527781427' source='http://www.blogger.com/feeds/5657276/posts/default/109875622527781427' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-5657276.post-25539891975168989</id><published>2008-02-25T02:49:00.000-08:00</published><updated>2008-02-25T02:49:00.000-08:00</updated><title type='text'>phew, the trailing space in the time fix saved me ...</title><summary type='text'>phew, the trailing space in the time fix saved me heaps of time - THANKS!</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5657276/109875622527781427/comments/default/25539891975168989'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5657276/109875622527781427/comments/default/25539891975168989'/><link rel='alternate' type='text/html' href='http://blog.209software.com/2004/10/dos-batch-file-fun-creating.html?showComment=1203936540000#c25539891975168989' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.209software.com/2004/10/dos-batch-file-fun-creating.html' ref='tag:blogger.com,1999:blog-5657276.post-109875622527781427' source='http://www.blogger.com/feeds/5657276/posts/default/109875622527781427' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-5657276.post-1013462242930137237</id><published>2008-02-21T17:29:00.000-08:00</published><updated>2008-02-21T17:29:00.000-08:00</updated><title type='text'>to boil it down in case someone missed it - very n...</title><summary type='text'>to boil it down in case someone missed it - very neat and easy filename with formatted date and time&lt;BR/&gt;&lt;BR/&gt;set current_date=%date:/=-% &lt;BR/&gt; creates new variable and replaces forward slashes / (in %date%) with hyphen -&lt;BR/&gt;&lt;BR/&gt;set current_time=%time: =0%&lt;BR/&gt; new variable created with spaces replaced by zeros 0&lt;BR/&gt;&lt;BR/&gt;set current_time=%current_time::=-%&lt;BR/&gt; process current_time again to </summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5657276/109875622527781427/comments/default/1013462242930137237'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5657276/109875622527781427/comments/default/1013462242930137237'/><link rel='alternate' type='text/html' href='http://blog.209software.com/2004/10/dos-batch-file-fun-creating.html?showComment=1203643740000#c1013462242930137237' title=''/><author><name>Adam</name><uri>http://www.blogger.com/profile/15628613392344160387</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.209software.com/2004/10/dos-batch-file-fun-creating.html' ref='tag:blogger.com,1999:blog-5657276.post-109875622527781427' source='http://www.blogger.com/feeds/5657276/posts/default/109875622527781427' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-5657276.post-5688982403080388607</id><published>2008-02-21T01:21:00.000-08:00</published><updated>2008-02-21T01:21:00.000-08:00</updated><title type='text'>Apparently MS's latest XP patch has just broken th...</title><summary type='text'>Apparently MS's latest XP patch has just broken this formatting, as far as I can make out the initial tilde is not parsed correctly and DATE or TIME commands must be escaped in percentages.</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5657276/109875622527781427/comments/default/5688982403080388607'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5657276/109875622527781427/comments/default/5688982403080388607'/><link rel='alternate' type='text/html' href='http://blog.209software.com/2004/10/dos-batch-file-fun-creating.html?showComment=1203585660000#c5688982403080388607' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.209software.com/2004/10/dos-batch-file-fun-creating.html' ref='tag:blogger.com,1999:blog-5657276.post-109875622527781427' source='http://www.blogger.com/feeds/5657276/posts/default/109875622527781427' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-5657276.post-6146922604905776193</id><published>2008-02-19T06:52:00.000-08:00</published><updated>2008-02-19T06:52:00.000-08:00</updated><title type='text'>thank you for suggestion, but this is exactly what...</title><summary type='text'>thank you for suggestion, but this is exactly what I need to do, so I think there was something wrong with my Dos version since changing the command to the following works, by the way, this is amazing website, I learned a lot from you.&lt;BR/&gt;&lt;BR/&gt;set datename=%DATE:~-6,3%%DATE:~-9,2%&lt;BR/&gt;&lt;BR/&gt;will create Feb18 directory.</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5657276/109875622527781427/comments/default/6146922604905776193'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5657276/109875622527781427/comments/default/6146922604905776193'/><link rel='alternate' type='text/html' href='http://blog.209software.com/2004/10/dos-batch-file-fun-creating.html?showComment=1203432720000#c6146922604905776193' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.209software.com/2004/10/dos-batch-file-fun-creating.html' ref='tag:blogger.com,1999:blog-5657276.post-109875622527781427' source='http://www.blogger.com/feeds/5657276/posts/default/109875622527781427' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-5657276.post-1117327248555154127</id><published>2008-02-15T13:04:04.976-08:00</published><updated>2008-02-15T13:04:04.976-08:00</updated><title type='text'>You did it wrong.Just look what TODAY is set to by...</title><summary type='text'>You did it wrong.&lt;BR/&gt;&lt;BR/&gt;Just look what TODAY is set to by typing &lt;BR/&gt;&lt;BR/&gt;SET TODAY&lt;BR/&gt;&lt;BR/&gt;you get 5/22/&lt;BR/&gt;&lt;BR/&gt;Sometimes you have to do your own debugging.</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5657276/109875622527781427/comments/default/1117327248555154127'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5657276/109875622527781427/comments/default/1117327248555154127'/><link rel='alternate' type='text/html' href='http://blog.209software.com/2004/10/dos-batch-file-fun-creating.html?showComment=1203109444976#c1117327248555154127' title=''/><author><name>Some Yahoo</name><uri>http://www.blogger.com/profile/12351196281372109140</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='00581425146657426231'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.209software.com/2004/10/dos-batch-file-fun-creating.html' ref='tag:blogger.com,1999:blog-5657276.post-109875622527781427' source='http://www.blogger.com/feeds/5657276/posts/default/109875622527781427' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-5657276.post-3156135494414075531</id><published>2008-02-15T10:47:00.000-08:00</published><updated>2008-02-15T10:47:00.000-08:00</updated><title type='text'>Hi, I am trying to save today date in a variable a...</title><summary type='text'>Hi, I am trying to save today date in a variable and create a directory using that variable (I do this because my batch file will run 18 hours and I need to save today date somewhere,)&lt;BR/&gt;&lt;BR/&gt;I used this command, but it is not working, any help please?&lt;BR/&gt;&lt;BR/&gt;SET  TODAY =  %date:~-6,3%%date:~-9,2%&lt;BR/&gt;mkdir %TODAY%</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5657276/109875622527781427/comments/default/3156135494414075531'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5657276/109875622527781427/comments/default/3156135494414075531'/><link rel='alternate' type='text/html' href='http://blog.209software.com/2004/10/dos-batch-file-fun-creating.html?showComment=1203101220000#c3156135494414075531' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.209software.com/2004/10/dos-batch-file-fun-creating.html' ref='tag:blogger.com,1999:blog-5657276.post-109875622527781427' source='http://www.blogger.com/feeds/5657276/posts/default/109875622527781427' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-5657276.post-1269272063592526527</id><published>2008-02-14T01:21:00.000-08:00</published><updated>2008-02-14T01:21:00.000-08:00</updated><title type='text'>THX &amp; Smile Chrisusing SET paddedtime=%time: =0% t...</title><summary type='text'>THX &amp; Smile Chris&lt;BR/&gt;using SET paddedtime=%time: =0% to zero pad is an absolutely brilliant shortcut&lt;BR/&gt;Shame you can't combine this with ~0,2 in one command. But this has still saved me lines of code,</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5657276/109875622527781427/comments/default/1269272063592526527'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5657276/109875622527781427/comments/default/1269272063592526527'/><link rel='alternate' type='text/html' href='http://blog.209software.com/2004/10/dos-batch-file-fun-creating.html?showComment=1202980860000#c1269272063592526527' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.209software.com/2004/10/dos-batch-file-fun-creating.html' ref='tag:blogger.com,1999:blog-5657276.post-109875622527781427' source='http://www.blogger.com/feeds/5657276/posts/default/109875622527781427' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-5657276.post-8681120805960132346</id><published>2008-02-13T10:55:00.000-08:00</published><updated>2008-02-13T10:55:00.000-08:00</updated><title type='text'>your code helped me alot to set up a heavy process...</title><summary type='text'>your code helped me alot to set up a heavy process....... thank a bunch....</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5657276/109875622527781427/comments/default/8681120805960132346'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5657276/109875622527781427/comments/default/8681120805960132346'/><link rel='alternate' type='text/html' href='http://blog.209software.com/2004/10/dos-batch-file-fun-creating.html?showComment=1202928900000#c8681120805960132346' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.209software.com/2004/10/dos-batch-file-fun-creating.html' ref='tag:blogger.com,1999:blog-5657276.post-109875622527781427' source='http://www.blogger.com/feeds/5657276/posts/default/109875622527781427' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-5657276.post-6731605350064923456</id><published>2007-09-28T02:57:00.000-07:00</published><updated>2007-09-28T02:57:00.000-07:00</updated><title type='text'>Here's another way to solve the no zero padding ho...</title><summary type='text'>Here's another way to solve the no zero padding hour problem with %TIME%:&lt;BR/&gt;&lt;BR/&gt;SET current_time=%time: =0%&lt;BR/&gt;&lt;BR/&gt;This replaces the spaces with zeros. You can then parse this variable to get the zero padded hour, e.g:&lt;BR/&gt;&lt;BR/&gt;%current_time:~0,2%</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5657276/109875622527781427/comments/default/6731605350064923456'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5657276/109875622527781427/comments/default/6731605350064923456'/><link rel='alternate' type='text/html' href='http://blog.209software.com/2004/10/dos-batch-file-fun-creating.html?showComment=1190973420000#c6731605350064923456' title=''/><author><name>Alex</name><uri>http://www.blogger.com/profile/07020812989218225766</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.209software.com/2004/10/dos-batch-file-fun-creating.html' ref='tag:blogger.com,1999:blog-5657276.post-109875622527781427' source='http://www.blogger.com/feeds/5657276/posts/default/109875622527781427' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-5657276.post-4669657802206809221</id><published>2007-09-13T02:23:00.000-07:00</published><updated>2007-09-13T02:23:00.000-07:00</updated><title type='text'>Excellent - /a saved the day!</title><summary type='text'>Excellent - /a saved the day!</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5657276/109875622527781427/comments/default/4669657802206809221'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5657276/109875622527781427/comments/default/4669657802206809221'/><link rel='alternate' type='text/html' href='http://blog.209software.com/2004/10/dos-batch-file-fun-creating.html?showComment=1189675380000#c4669657802206809221' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.209software.com/2004/10/dos-batch-file-fun-creating.html' ref='tag:blogger.com,1999:blog-5657276.post-109875622527781427' source='http://www.blogger.com/feeds/5657276/posts/default/109875622527781427' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-5657276.post-7666942000757140639</id><published>2007-07-02T05:34:00.000-07:00</published><updated>2007-07-02T05:34:00.000-07:00</updated><title type='text'>Many thanks , this really helped me outSaved me a ...</title><summary type='text'>Many thanks , this really helped me out&lt;BR/&gt;&lt;BR/&gt;Saved me a lot of trouble</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5657276/109875622527781427/comments/default/7666942000757140639'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5657276/109875622527781427/comments/default/7666942000757140639'/><link rel='alternate' type='text/html' href='http://blog.209software.com/2004/10/dos-batch-file-fun-creating.html?showComment=1183379640000#c7666942000757140639' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.209software.com/2004/10/dos-batch-file-fun-creating.html' ref='tag:blogger.com,1999:blog-5657276.post-109875622527781427' source='http://www.blogger.com/feeds/5657276/posts/default/109875622527781427' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-5657276.post-7022227987827363621</id><published>2007-05-02T15:52:00.000-07:00</published><updated>2007-05-02T15:52:00.000-07:00</updated><title type='text'>This is brilliant - many thanks.</title><summary type='text'>This is brilliant - many thanks.</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5657276/109875622527781427/comments/default/7022227987827363621'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5657276/109875622527781427/comments/default/7022227987827363621'/><link rel='alternate' type='text/html' href='http://blog.209software.com/2004/10/dos-batch-file-fun-creating.html?showComment=1178146320000#c7022227987827363621' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.209software.com/2004/10/dos-batch-file-fun-creating.html' ref='tag:blogger.com,1999:blog-5657276.post-109875622527781427' source='http://www.blogger.com/feeds/5657276/posts/default/109875622527781427' type='text/html'/></entry></feed>