<?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: transfer just last generated files using ftp from win machine in Operating System - Microsoft</title>
    <link>https://community.hpe.com/t5/operating-system-microsoft/transfer-just-last-generated-files-using-ftp-from-win-machine/m-p/4203413#M8814</link>
    <description>Thanks for update. I resloved problem related to ftp, I can transfer files form client to server and vice-versa. Now, I am playing to find some way to transfer just last generated file from script in win. scheduler. Any idea is welcome. &lt;BR /&gt;&lt;BR /&gt;With regards,</description>
    <pubDate>Fri, 23 May 2008 19:54:31 GMT</pubDate>
    <dc:creator>index</dc:creator>
    <dc:date>2008-05-23T19:54:31Z</dc:date>
    <item>
      <title>transfer just last generated files using ftp from win machine</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/transfer-just-last-generated-files-using-ftp-from-win-machine/m-p/4203411#M8812</link>
      <description>Hi all, &lt;BR /&gt;&lt;BR /&gt;after connecting to windows ftp server, I would like to transfer files that are last generated, I mean last ones according date. In linux/unix I know it is possible to do something like ls -s | awk '{ print $1, $ time field } ' and select files for transfer. But I do not know to do the same on windows after connecting. I google-ed, but still did not find some solution. &lt;BR /&gt;Also, when I after connecting to win machine issue cd c:\ I got, ftp&amp;gt; cd c:/&lt;BR /&gt;550 c:/: The filename, directory name, or volume label syntax is incorrect&lt;BR /&gt;Can you suggest, what is wrong with this command, it is stated in microsoft help page as &lt;BR /&gt;correct sintax.  &lt;BR /&gt;&lt;BR /&gt;Thanks in advande, &lt;BR /&gt;&lt;BR /&gt;with regards, &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 23 May 2008 07:19:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/transfer-just-last-generated-files-using-ftp-from-win-machine/m-p/4203411#M8812</guid>
      <dc:creator>index</dc:creator>
      <dc:date>2008-05-23T07:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: transfer just last generated files using ftp from win machine</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/transfer-just-last-generated-files-using-ftp-from-win-machine/m-p/4203412#M8813</link>
      <description>Hi index ;-),&lt;BR /&gt;  In windows you can use script which are also same/more powerful as script on linux.&lt;BR /&gt;for example you wanna list all file creation list write a file &lt;FILENAME.WSH&gt; double click to run:&lt;BR /&gt;strComputer = "."&lt;BR /&gt;Set objWMIService = GetObject("winmgmts:\\" &amp;amp; strComputer &amp;amp; "\root\cimv2")&lt;BR /&gt;&lt;BR /&gt;Set FileList = objWMIService.ExecQuery _&lt;BR /&gt;    ("ASSOCIATORS OF {Win32_Directory.Name='c:\Logs'} Where " _&lt;BR /&gt;        &amp;amp; "ResultClass = CIM_DataFile")&lt;BR /&gt;&lt;BR /&gt;For Each objFile In FileList&lt;BR /&gt;    strDate = Left(objFile.CreationDate, 8)&lt;BR /&gt;    Wscript.Echo strDate&lt;BR /&gt;Next&lt;BR /&gt;//++++++++++++++++++++++++++++++&lt;BR /&gt;It will display all dates you can do manipulation and anything.&lt;BR /&gt;&lt;BR /&gt;Now your ftp issue?&lt;BR /&gt;Did you setup a FTP server and client?&lt;BR /&gt;files you are transferring need ftp service on target too?&lt;BR /&gt;&lt;/FILENAME.WSH&gt;</description>
      <pubDate>Fri, 23 May 2008 11:48:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/transfer-just-last-generated-files-using-ftp-from-win-machine/m-p/4203412#M8813</guid>
      <dc:creator>Change_happens</dc:creator>
      <dc:date>2008-05-23T11:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: transfer just last generated files using ftp from win machine</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/transfer-just-last-generated-files-using-ftp-from-win-machine/m-p/4203413#M8814</link>
      <description>Thanks for update. I resloved problem related to ftp, I can transfer files form client to server and vice-versa. Now, I am playing to find some way to transfer just last generated file from script in win. scheduler. Any idea is welcome. &lt;BR /&gt;&lt;BR /&gt;With regards,</description>
      <pubDate>Fri, 23 May 2008 19:54:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/transfer-just-last-generated-files-using-ftp-from-win-machine/m-p/4203413#M8814</guid>
      <dc:creator>index</dc:creator>
      <dc:date>2008-05-23T19:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: transfer just last generated files using ftp from win machine</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/transfer-just-last-generated-files-using-ftp-from-win-machine/m-p/4203414#M8815</link>
      <description>see win script is very flexible and very powerful; even u don't need ftp to copy over network. anyways up to u.&lt;BR /&gt;see this exapmple you can run SQL queries here:&lt;BR /&gt;+++++++++++++++++++++++++++++++++&lt;BR /&gt;Set objLogParser = CreateObject("MSUtil.LogQuery")&lt;BR /&gt;Set objInputFormat = CreateObject("MSUtil.LogQuery.FileSystemInputFormat")&lt;BR /&gt;objInputFormat.Recurse = 0&lt;BR /&gt;&lt;BR /&gt;Set objOutputFormat = CreateObject("MSUtil.LogQuery.NativeOutputFormat")&lt;BR /&gt;objOutputFormat.rtp = -1&lt;BR /&gt;&lt;BR /&gt;strQuery = "SELECT Name, CreationTime FROM 'C:\Scripts\*.*' " &amp;amp; _&lt;BR /&gt;    "WHERE NOT Attributes LIKE '%D%' ORDER BY CreationTime"&lt;BR /&gt;objLogParser.ExecuteBatch strQuery, objInputFormat, objOutputFormat&lt;BR /&gt;++++++++++++++++++++++++++++++++&lt;BR /&gt;which can sort ur directory to creation date. now u can write query to list only file which are less than a specified date. and put them in a array and copy those.&lt;BR /&gt;&lt;BR /&gt;+++++++++&lt;BR /&gt;To copy over network:&lt;BR /&gt;Set objNetwork = CreateObject("Wscript.Network")&lt;BR /&gt;objNetwork.MapNetworkDrive "Z:", "\\atl-fs-01\Public"  +++ map the drive&lt;BR /&gt;&lt;BR /&gt;Set objFSO = CreateObject("Scripting.FileSystemObject")&lt;BR /&gt;objFSO.CopyFile "C:\Scripts\Test.txt", "Z:\" +++ copy files&lt;BR /&gt;&lt;BR /&gt;objNetwork.RemoveNetworkDrive "Z:" ++ disconnect again.&lt;BR /&gt;+++DONE&lt;BR /&gt;&lt;BR /&gt;Hope u will play more with script and get ur work done as well as learnings.</description>
      <pubDate>Mon, 26 May 2008 05:37:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/transfer-just-last-generated-files-using-ftp-from-win-machine/m-p/4203414#M8815</guid>
      <dc:creator>Change_happens</dc:creator>
      <dc:date>2008-05-26T05:37:57Z</dc:date>
    </item>
  </channel>
</rss>

