<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: touch with DOS commands</title>
	<atom:link href="http://brett.batie.com/dosshell/touch-with-dos-commands/feed/" rel="self" type="application/rss+xml" />
	<link>http://brett.batie.com/dosshell/touch-with-dos-commands/</link>
	<description>Thoughts of a Software Developer.</description>
	<pubDate>Mon, 08 Sep 2008 11:43:17 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: masc</title>
		<link>http://brett.batie.com/dosshell/touch-with-dos-commands/#comment-65</link>
		<dc:creator>masc</dc:creator>
		<pubDate>Sun, 17 Feb 2008 23:24:48 +0000</pubDate>
		<guid isPermaLink="false">http://brett.batie.com/?p=24#comment-65</guid>
		<description>@copy %1 + nul %1 /by

also works, provided copy is new enough to test that it shouldn't overwrite the original file</description>
		<content:encoded><![CDATA[<p>@copy %1 + nul %1 /by</p>
<p>also works, provided copy is new enough to test that it shouldn&#8217;t overwrite the original file</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: masc</title>
		<link>http://brett.batie.com/dosshell/touch-with-dos-commands/#comment-64</link>
		<dc:creator>masc</dc:creator>
		<pubDate>Sun, 17 Feb 2008 22:24:40 +0000</pubDate>
		<guid isPermaLink="false">http://brett.batie.com/?p=24#comment-64</guid>
		<description>@copy nul: /b +%1 tmp.$$$
@move tmp.$$$ %1

=touch.bat
doesn't change anything in file.org, only time and date</description>
		<content:encoded><![CDATA[<p>@copy nul: /b +%1 tmp.$$$<br />
@move tmp.$$$ %1</p>
<p>=touch.bat<br />
doesn&#8217;t change anything in file.org, only time and date</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brett</title>
		<link>http://brett.batie.com/dosshell/touch-with-dos-commands/#comment-57</link>
		<dc:creator>Brett</dc:creator>
		<pubDate>Tue, 12 Feb 2008 23:02:12 +0000</pubDate>
		<guid isPermaLink="false">http://brett.batie.com/?p=24#comment-57</guid>
		<description>You are right! I have only used that command to quickly create an empty file. I have never used it for updating the modification time of an existing file.

I do not know of a way to modify the date modified of a file in dos without using a third party program. Although, if you want the date modified to be updated to the current time you could use one of the follow commands:

1. This copies the file to a temp File and then copies the temp File back over the original. Then deletes the temp File. 
type file.txt &gt; tmpFile.txt &#124; type tmpFile.txt &gt; file.txt &#124; del tmpFile.txt

2. Type: edit file.txt, then hit: alt, f, s, alt, f, x

I really think both solutions are hacks at best. I also wonder what would happen to unicode files or files that have unix style line endings.</description>
		<content:encoded><![CDATA[<p>You are right! I have only used that command to quickly create an empty file. I have never used it for updating the modification time of an existing file.</p>
<p>I do not know of a way to modify the date modified of a file in dos without using a third party program. Although, if you want the date modified to be updated to the current time you could use one of the follow commands:</p>
<p>1. This copies the file to a temp File and then copies the temp File back over the original. Then deletes the temp File.<br />
type file.txt > tmpFile.txt | type tmpFile.txt > file.txt | del tmpFile.txt</p>
<p>2. Type: edit file.txt, then hit: alt, f, s, alt, f, x</p>
<p>I really think both solutions are hacks at best. I also wonder what would happen to unicode files or files that have unix style line endings.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: errr</title>
		<link>http://brett.batie.com/dosshell/touch-with-dos-commands/#comment-56</link>
		<dc:creator>errr</dc:creator>
		<pubDate>Tue, 12 Feb 2008 20:46:28 +0000</pubDate>
		<guid isPermaLink="false">http://brett.batie.com/?p=24#comment-56</guid>
		<description>That seems to clear(!!) the file, rather than touching it</description>
		<content:encoded><![CDATA[<p>That seems to clear(!!) the file, rather than touching it</p>
]]></content:encoded>
	</item>
</channel>
</rss>
