<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Batch file to Get New Files Only through FTP in Operating System - Microsoft</title>
    <link>https://community.hpe.com/t5/operating-system-microsoft/batch-file-to-get-new-files-only-through-ftp/m-p/4386338#M9292</link>
    <description>&lt;!--!*#--&gt;If you're writing a Windows batch script,&lt;BR /&gt;then you might do better asking about it in&lt;BR /&gt;a Microsoft Windows forum.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] only the newly added CSV file [...]&lt;BR /&gt;&lt;BR /&gt;You could try to get a long-format listing&lt;BR /&gt;from the FTP server ("dir"?), then extract a&lt;BR /&gt;list of the files which meet your selection&lt;BR /&gt;criteria, and finally fetch the desired&lt;BR /&gt;files.&lt;BR /&gt;&lt;BR /&gt;I don't see how you would be able to make&lt;BR /&gt;this work using "mget".  One "get" command&lt;BR /&gt;per file would seem to be needed.&lt;BR /&gt;&lt;BR /&gt;It might be easier if some of the work were&lt;BR /&gt;done on the Unix (not a well-defined term, by&lt;BR /&gt;the way) side.  One might, for example,&lt;BR /&gt;create a new directory every day, and fill it&lt;BR /&gt;with the day's new files (or links to them).&lt;BR /&gt;Then, a simple FTP get-everything script&lt;BR /&gt;could do the job.</description>
    <pubDate>Tue, 24 Mar 2009 12:09:51 GMT</pubDate>
    <dc:creator>Steven Schweda</dc:creator>
    <dc:date>2009-03-24T12:09:51Z</dc:date>
    <item>
      <title>Batch file to Get New Files Only through FTP</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/batch-file-to-get-new-files-only-through-ftp/m-p/4386334#M9288</link>
      <description>Hi there &lt;BR /&gt;&lt;BR /&gt;I want to create a batch file which Get (mget) the newly added Files only, from specific directory on UNIX server to local folder on windows server using FTP, and this batch file will be scheduled on the windows server to run daily to load the new files.&lt;BR /&gt;help me plz &lt;BR /&gt;</description>
      <pubDate>Tue, 24 Mar 2009 06:48:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/batch-file-to-get-new-files-only-through-ftp/m-p/4386334#M9288</guid>
      <dc:creator>Murad Al Sharq</dc:creator>
      <dc:date>2009-03-24T06:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: Batch file to Get New Files Only through FTP</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/batch-file-to-get-new-files-only-through-ftp/m-p/4386335#M9289</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;i have some indirect solusion for this.&lt;BR /&gt;share out that specific directory in hpux (using by samba)map that drive in your windows box and then use robocopy with below option, robocopy will only copy diff files.&lt;BR /&gt;&lt;BR /&gt;robocopy w:\ g:\ /E /SEC /LOG:Log1.log&lt;BR /&gt;&lt;BR /&gt;here g= is your unix drive&lt;BR /&gt;w: = is your local windows drive&lt;BR /&gt;Log1.log is log file which will generate &lt;BR /&gt;&lt;BR /&gt;let me know how it goes,</description>
      <pubDate>Tue, 24 Mar 2009 08:30:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/batch-file-to-get-new-files-only-through-ftp/m-p/4386335#M9289</guid>
      <dc:creator>avizen9</dc:creator>
      <dc:date>2009-03-24T08:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Batch file to Get New Files Only through FTP</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/batch-file-to-get-new-files-only-through-ftp/m-p/4386336#M9290</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;There is an example of ftp batch scripting in this link:&lt;BR /&gt;&lt;A href="http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1237891232149+28353475&amp;amp;threadId=36861" target="_blank"&gt;http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1237891232149+28353475&amp;amp;threadId=36861&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You can put any command you want before the EOF put get, any ftp command.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 24 Mar 2009 09:41:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/batch-file-to-get-new-files-only-through-ftp/m-p/4386336#M9290</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2009-03-24T09:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: Batch file to Get New Files Only through FTP</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/batch-file-to-get-new-files-only-through-ftp/m-p/4386337#M9291</link>
      <description>Thanks a lot for your support &lt;BR /&gt;I have reached the following &lt;BR /&gt;&lt;BR /&gt;1- The following is the batch file which has the name "ftp_executable.bat". it contains the following:&lt;BR /&gt;&lt;BR /&gt;ftp -n -s:ftp_import.txt 10.32.253.73&lt;BR /&gt;exit&lt;BR /&gt;&lt;BR /&gt;2- The following is the text file which has the name "ftp_import.txt". it contains the following:&lt;BR /&gt;&lt;BR /&gt;user &lt;UNIX username=""&gt;&lt;BR /&gt;&lt;UNIX password=""&gt;&lt;BR /&gt;lcd D:\The coming files from FTP    &lt;BR /&gt;cd /home/the outgoning files from ftp&lt;BR /&gt;prompt&lt;BR /&gt;mget *.CSV&lt;BR /&gt;bye&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Everything is running well &lt;BR /&gt;&lt;BR /&gt;But still I want to modify this batch to get only the newly added CSV file, not all the files (*.CSV). this is now my only issue.&lt;BR /&gt;&lt;/UNIX&gt;&lt;/UNIX&gt;</description>
      <pubDate>Tue, 24 Mar 2009 11:14:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/batch-file-to-get-new-files-only-through-ftp/m-p/4386337#M9291</guid>
      <dc:creator>Murad Al Sharq</dc:creator>
      <dc:date>2009-03-24T11:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: Batch file to Get New Files Only through FTP</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/batch-file-to-get-new-files-only-through-ftp/m-p/4386338#M9292</link>
      <description>&lt;!--!*#--&gt;If you're writing a Windows batch script,&lt;BR /&gt;then you might do better asking about it in&lt;BR /&gt;a Microsoft Windows forum.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] only the newly added CSV file [...]&lt;BR /&gt;&lt;BR /&gt;You could try to get a long-format listing&lt;BR /&gt;from the FTP server ("dir"?), then extract a&lt;BR /&gt;list of the files which meet your selection&lt;BR /&gt;criteria, and finally fetch the desired&lt;BR /&gt;files.&lt;BR /&gt;&lt;BR /&gt;I don't see how you would be able to make&lt;BR /&gt;this work using "mget".  One "get" command&lt;BR /&gt;per file would seem to be needed.&lt;BR /&gt;&lt;BR /&gt;It might be easier if some of the work were&lt;BR /&gt;done on the Unix (not a well-defined term, by&lt;BR /&gt;the way) side.  One might, for example,&lt;BR /&gt;create a new directory every day, and fill it&lt;BR /&gt;with the day's new files (or links to them).&lt;BR /&gt;Then, a simple FTP get-everything script&lt;BR /&gt;could do the job.</description>
      <pubDate>Tue, 24 Mar 2009 12:09:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/batch-file-to-get-new-files-only-through-ftp/m-p/4386338#M9292</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-03-24T12:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: Batch file to Get New Files Only through FTP</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/batch-file-to-get-new-files-only-through-ftp/m-p/4386339#M9293</link>
      <description>consider using rsync / rsync for windows.  its designed to do such things automatically (i.e. get new / changed files from one system to another).&lt;BR /&gt;&lt;BR /&gt;while doing such w/ ftp is possible, its going to take scripting, in your case on the windows side.</description>
      <pubDate>Tue, 24 Mar 2009 13:21:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/batch-file-to-get-new-files-only-through-ftp/m-p/4386339#M9293</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2009-03-24T13:21:01Z</dc:date>
    </item>
  </channel>
</rss>

