<?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>theDeSilva.com&#187; batch file</title>
	<atom:link href="http://www.thedesilva.com/tag/batch-file/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thedesilva.com</link>
	<description>Andrew de Silva</description>
	<lastBuildDate>Wed, 10 Mar 2010 21:48:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Batch File to Copy Flex Release Build to Production Server</title>
		<link>http://www.thedesilva.com/2010/02/batch-file-to-copy-flex-release-build-to-production-server/</link>
		<comments>http://www.thedesilva.com/2010/02/batch-file-to-copy-flex-release-build-to-production-server/#comments</comments>
		<pubDate>Thu, 04 Feb 2010 22:19:04 +0000</pubDate>
		<dc:creator>Andrew de Silva</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[batch file]]></category>

		<guid isPermaLink="false">http://www.thedesilva.com/?p=194</guid>
		<description><![CDATA[<img src="http://www.thedesilva.com/img/category_icon//flex-icon-small.png" width="32" height="32" alt="" title="Flex" /><br/>Here&#8217;s something that I always do when writing any sort of Flex Application. I&#8217;ll write a batch file that would allow me to quickly double click it and copy all of the files on the bin-release folder to the production server. This normally save me a lot of time as I don&#8217;t have to manually [...]]]></description>
			<content:encoded><![CDATA[<img src="http://www.thedesilva.com/img/category_icon//flex-icon-small.png" width="32" height="32" alt="" title="Flex" /><br/><p>Here&#8217;s something that I always do when writing any sort of Flex Application. I&#8217;ll write a batch file that would allow me to quickly double click it and copy all of the files on the bin-release folder to the production server. This normally save me a lot of time as I don&#8217;t have to manually look for the files and copy them to the server.</p>
<p>Here&#8217;s a quick way to create the batch file and edit it to do what you want to ,</p>
<ol>
<li> Open up Notepad in Windows. You can do this by navigating to Start &gt; Programs &gt; Accessories &gt; Notepad, or simply by entering notepad under Start &gt; Run.</li>
<li> Save your file before you start writing any code</li>
<li> Go to File &gt; Save As.</li>
<li> Click on the dropdown box &#8220;Save as type:&#8221; and select &#8220;All files&#8221; instead of Text (*.txt).</li>
<li> Add .bat to the end of your file name before you save. For example copy.bat.</li>
<li> Click on Save.</li>
</ol>
<p>Now a little batch commands to delete the files that exist on the production server first before we copy the files from the bin-release folder to the production server followed by opening the page using the default browser.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="vb" style="font-family:monospace;">REM Delete old production files
del \\production_server_name\production_folder\*.*
REM Copy over <span style="color: #000080;">new</span> production files
copy *.* \\production_server_name\production_folder\
REM <span style="color: #000080;">Open</span> the location of the file using default browser
start www.production_server.com</pre></td></tr></table></div>

<p>The batch file should be located in the same folder as the files that you want to copy</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thedesilva.com/2010/02/batch-file-to-copy-flex-release-build-to-production-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
