<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'NEED CODE TO SPECIFY ONLY THE FILE I NEED TO COPY IN A FOLDER' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'NEED CODE TO SPECIFY ONLY THE FILE I NEED TO COPY IN A FOLDER' posted on the 'MS-DOS' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2012 Programmers Heaven</copyright>
    <pubDate>Wed, 23 May 2012 06:22:54 -0700</pubDate>
    <lastBuildDate>Wed, 23 May 2012 06:22:54 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>NEED CODE TO SPECIFY ONLY THE FILE I NEED TO COPY IN A FOLDER</title>
      <link>http://www.programmersheaven.com/mb/MS-DOS/411321/411321/need-code-to-specify-only-the-file-i-need-to-copy-in-a-folder/</link>
      <description>guys help me plss..&lt;br /&gt;
&lt;br /&gt;
i need to copy files from a folder but not all the files in it must be copied..i need to pick only the files i need, but how?&lt;br /&gt;
&lt;br /&gt;
for ex.&lt;br /&gt;
20091211&lt;br /&gt;
20091108&lt;br /&gt;
20091213&lt;br /&gt;
20091009&lt;br /&gt;
20091226&lt;br /&gt;
&lt;br /&gt;
i only need to copy files from december only..so i must copy onlt this files:&lt;br /&gt;
20091211&lt;br /&gt;
20091213&lt;br /&gt;
20091226&lt;br /&gt;
&lt;br /&gt;
plsss help me..&lt;br /&gt;
thanks in advance..&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/MS-DOS/411321/411321/need-code-to-specify-only-the-file-i-need-to-copy-in-a-folder/</guid>
      <pubDate>Mon, 28 Dec 2009 19:29:31 -0700</pubDate>
      <category>MS-DOS</category>
    </item>
    <item>
      <title>Re: NEED CODE TO SPECIFY ONLY THE FILE I NEED TO COPY IN A FOLDER</title>
      <link>http://www.programmersheaven.com/mb/MS-DOS/411321/411345/re-need-code-to-specify-only-the-file-i-need-to-copy-in-a-folder/#411345</link>
      <description>&lt;span style="color: Blue;"&gt;Link to HELP PC online:&lt;br /&gt;
&lt;a href="http://docs.huihoo.com/help-pc/int-int_21.html"&gt;http://docs.huihoo.com/help-pc/int-int_21.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
You need to enumerate all files in your folder with these services:&lt;br /&gt;
AH=4Eh (Find First File)&lt;br /&gt;
AH=4Fh (Find Next File)&lt;br /&gt;
&lt;br /&gt;
During these calls DOS will fill the information about each file into DTA object (which can be set by AH=1Ah service). That object has DATE &amp;amp; TIME of the file. Use it to select only the files needed for copying.&lt;br /&gt;
&lt;/span&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/MS-DOS/411321/411345/re-need-code-to-specify-only-the-file-i-need-to-copy-in-a-folder/#411345</guid>
      <pubDate>Tue, 29 Dec 2009 05:17:55 -0700</pubDate>
      <category>MS-DOS</category>
    </item>
    <item>
      <title>Re: NEED CODE TO SPECIFY ONLY THE FILE I NEED TO COPY IN A FOLDER</title>
      <link>http://www.programmersheaven.com/mb/MS-DOS/411321/411460/re-need-code-to-specify-only-the-file-i-need-to-copy-in-a-folder/#411460</link>
      <description>thanks for the info..&lt;br /&gt;
&lt;br /&gt;
sorry if i didn't specify it earlier but what i need is a code to create a batch file..&lt;br /&gt;
&lt;br /&gt;
thanks again..&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/MS-DOS/411321/411460/re-need-code-to-specify-only-the-file-i-need-to-copy-in-a-folder/#411460</guid>
      <pubDate>Sun, 03 Jan 2010 16:43:58 -0700</pubDate>
      <category>MS-DOS</category>
    </item>
    <item>
      <title>Re: NEED CODE TO SPECIFY ONLY THE FILE I NEED TO COPY IN A FOLDER</title>
      <link>http://www.programmersheaven.com/mb/MS-DOS/411321/411882/re-need-code-to-specify-only-the-file-i-need-to-copy-in-a-folder/#411882</link>
      <description>To copy files created in Dec 2009, you can use this script.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;# Script CopyByDate.txt
var str list, file
cd "C:/Folder1"
lf -n "*" "." (($fctime &amp;gt;= "20091201") AND ($fctime &amp;lt;= "20091231")) &amp;gt; $list
while ($list &amp;lt;&amp;gt; "")
do
    lex "1" $list &amp;gt; $file
    system copy ("\""+$file+"\"") ("\""+"C:/Folder2"+"\"")
done&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To copy files by name, change the lf command to&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;lf -n "*" "." (($fname &amp;gt;= "20091201") AND ($fname &amp;lt;= "20091231")) &amp;gt; $list&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Both scripts are in biterscripting ( &lt;a href="http://www.biterscripting.com"&gt;http://www.biterscripting.com&lt;/a&gt; ). To try, save the script in file C:/Scripts/CopyByDate.txt, execute it with the following command.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;script "C:/Scripts/CopyByDate.txt"&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/MS-DOS/411321/411882/re-need-code-to-specify-only-the-file-i-need-to-copy-in-a-folder/#411882</guid>
      <pubDate>Wed, 13 Jan 2010 10:00:44 -0700</pubDate>
      <category>MS-DOS</category>
    </item>
  </channel>
</rss>
