<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>UC&#039;s Corner &#187; ftp with batch file</title>
	<atom:link href="http://yussi.nl/index.php/tag/ftp-with-batch-file/feed" rel="self" type="application/rss+xml" />
	<link>http://yussi.nl</link>
	<description>Yussi Ariefiyono</description>
	<lastBuildDate>Fri, 24 Jun 2011 13:08:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>uploading the latest file to ftp with batch command</title>
		<link>http://yussi.nl/index.php/uploading-the-latest-file-to-ftp-with-batch-command.html</link>
		<comments>http://yussi.nl/index.php/uploading-the-latest-file-to-ftp-with-batch-command.html#comments</comments>
		<pubDate>Thu, 08 Apr 2010 09:45:10 +0000</pubDate>
		<dc:creator>yussi ariefiyono</dc:creator>
				<category><![CDATA[batch command]]></category>
		<category><![CDATA[batch]]></category>
		<category><![CDATA[ftp command]]></category>
		<category><![CDATA[ftp with batch file]]></category>
		<category><![CDATA[windows batch command]]></category>

		<guid isPermaLink="false">http://yussi.nl/?p=98</guid>
		<description><![CDATA[batch, batch command, ftp with batch file, ftp command, windows batch command, ]]></description>
			<content:encoded><![CDATA[<p>uploading the latest file to ftp, all you  need 2 .bat files</p>
<p><strong> </strong></p>
<p><strong>fileup.bat</strong></p>
<blockquote><p>@echo  off</p>
<p>echo user USERNAME&gt;  ftpcmd.dat</p>
<p>echo PASSWORD&gt;&gt;  ftpcmd.dat</p>
<p>echo bin&gt;&gt;  ftpcmd.dat</p>
<p>echo cd REMOTEPATH  &gt;&gt; ftpcmd.dat</p>
<p>echo put %1&gt;&gt;  ftpcmd.dat</p>
<p>echo quit&gt;&gt;  ftpcmd.dat</p>
<p>ftp -n -s:ftpcmd.dat  FTPADDRESS</p>
<p>del  ftpcmd.dat</p></blockquote>
<p><strong>CALL.bat</strong></p>
<blockquote><p>@echo  off</p>
<p>setlocal</p>
<p>:source  directory</p>
<p>set srcDir=SOURCE  DIRECTORY</p>
<p>set  lastmod=</p>
<p>pushd  &#8220;%srcDir%&#8221;</p>
<p>for /f &#8220;tokens=*&#8221; %%a  in (&#8216;dir /b /od 2^&gt;NUL&#8217;) do set lastmod=%%a</p>
<p>if &#8220;%lastmod%&#8221;==&#8221;" echo  Could not locate files.&amp;goto :eof</p>
<p>:copy</p>
<p>call  YOURPATH\fileup.bat &#8220;%lastmod%&#8221;</p>
<p>:delete</p>
<p>del  &#8220;%lastmod%&#8221;</p></blockquote>
<p><strong>You  call the CALL.bat</strong>, and the fileup.bat is  for information</p>
]]></content:encoded>
			<wfw:commentRss>http://yussi.nl/index.php/uploading-the-latest-file-to-ftp-with-batch-command.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Transfer to FTP using batch command</title>
		<link>http://yussi.nl/index.php/transfer-to-ftp-using-batch-command.html</link>
		<comments>http://yussi.nl/index.php/transfer-to-ftp-using-batch-command.html#comments</comments>
		<pubDate>Thu, 08 Apr 2010 08:52:34 +0000</pubDate>
		<dc:creator>yussi ariefiyono</dc:creator>
				<category><![CDATA[batch command]]></category>
		<category><![CDATA[batch]]></category>
		<category><![CDATA[ftp command]]></category>
		<category><![CDATA[ftp with batch file]]></category>
		<category><![CDATA[windows batch command]]></category>

		<guid isPermaLink="false">http://yussi.nl/?p=94</guid>
		<description><![CDATA[batch, batch command, windows batch command, ftp command, ftp with batch file]]></description>
			<content:encoded><![CDATA[<p>there are 2 file you need</p>
<p><strong>1. info of your ftp ( store it in .txt)<br />
<span style="font-weight: normal;">in my case i named it info.txt with these code written:<br />
</span></strong></p>
<blockquote>
<div id="_mcePaste">yourusername</div>
<div id="_mcePaste">yourpassword</div>
<div id="_mcePaste">bin</div>
<div id="_mcePaste">cd yourremotedirectory</div>
<div id="_mcePaste">bye</div>
</blockquote>
<p><strong>2. .bat file to connect to ftp and do what you want<br />
</strong>in .bat file simply call the info.txt with this code:</p>
<blockquote><p>ftp -s:log.txt YourFTPAddress</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://yussi.nl/index.php/transfer-to-ftp-using-batch-command.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

