<?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: Append to a file in Operating System - Microsoft</title>
    <link>https://community.hpe.com/t5/operating-system-microsoft/append-to-a-file/m-p/4450446#M9395</link>
    <description>Both host are using windows</description>
    <pubDate>Wed, 01 Jul 2009 15:54:23 GMT</pubDate>
    <dc:creator>Kentucky</dc:creator>
    <dc:date>2009-07-01T15:54:23Z</dc:date>
    <item>
      <title>Append to a file</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/append-to-a-file/m-p/4450443#M9392</link>
      <description>I would like to use the copy /xcopy or rename command and take a file and rename it to include the date - is that possible.&lt;BR /&gt;i.e. rename "file1" to "file1_mmddccyy".  This will be automated.  The goal is to send a file from local host to a remote host, Once ftp is complete. Then Rename the file on the local host with the date stamped at the end of the file.</description>
      <pubDate>Tue, 30 Jun 2009 18:25:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/append-to-a-file/m-p/4450443#M9392</guid>
      <dc:creator>Kentucky</dc:creator>
      <dc:date>2009-06-30T18:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Append to a file</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/append-to-a-file/m-p/4450444#M9393</link>
      <description>(I assume your subject isn't accurate and you don't want to append?)&lt;BR /&gt;Are both hosts using Windows?&lt;BR /&gt;It should be possible to use rename.</description>
      <pubDate>Wed, 01 Jul 2009 01:14:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/append-to-a-file/m-p/4450444#M9393</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-07-01T01:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: Append to a file</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/append-to-a-file/m-p/4450445#M9394</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;See if you can run this within a .cmd file:&lt;BR /&gt;&lt;BR /&gt;SET fecha=%date:/=-%&lt;BR /&gt;copy file1 file1_%fecha%&lt;BR /&gt;&lt;BR /&gt;You can either use copy or rename.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Jul 2009 08:46:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/append-to-a-file/m-p/4450445#M9394</guid>
      <dc:creator>Edgar Zapata</dc:creator>
      <dc:date>2009-07-01T08:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Append to a file</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/append-to-a-file/m-p/4450446#M9395</link>
      <description>Both host are using windows</description>
      <pubDate>Wed, 01 Jul 2009 15:54:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/append-to-a-file/m-p/4450446#M9395</guid>
      <dc:creator>Kentucky</dc:creator>
      <dc:date>2009-07-01T15:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: Append to a file</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/append-to-a-file/m-p/4450447#M9396</link>
      <description>Edgar's method should work. As written however you would need to enclose the source and destination file names in quotes since the SET command here will return a value with a space.&lt;BR /&gt;&lt;BR /&gt;Example "Thu 07-02-2009"&lt;BR /&gt;&lt;BR /&gt;If you want to get rid of the day of the week, insert one more line between after the inital SET:&lt;BR /&gt;&lt;BR /&gt;SET fecha=%fecha:~4%&lt;BR /&gt;&lt;BR /&gt;This removes the first 4 characters of that variable. Good luck!</description>
      <pubDate>Thu, 02 Jul 2009 16:39:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/append-to-a-file/m-p/4450447#M9396</guid>
      <dc:creator>WFHC-WI</dc:creator>
      <dc:date>2009-07-02T16:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: Append to a file</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/append-to-a-file/m-p/4450448#M9397</link>
      <description>One more thing... using UNC paths via the command line can sometimes lead to unexpected results. I recommend adding a command to map a drive before copying (and removing the mapping afterward if desired.)&lt;BR /&gt;&lt;BR /&gt;NET USE Z: (share path)&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;NET USE Z: /delete</description>
      <pubDate>Thu, 02 Jul 2009 16:41:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/append-to-a-file/m-p/4450448#M9397</guid>
      <dc:creator>WFHC-WI</dc:creator>
      <dc:date>2009-07-02T16:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Append to a file</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/append-to-a-file/m-p/4450449#M9398</link>
      <description>Thanks Edgar and WFH-WI. It's working.</description>
      <pubDate>Thu, 02 Jul 2009 16:53:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/append-to-a-file/m-p/4450449#M9398</guid>
      <dc:creator>Kentucky</dc:creator>
      <dc:date>2009-07-02T16:53:37Z</dc:date>
    </item>
  </channel>
</rss>

