<?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>TechBlog &#187; FTP</title>
	<atom:link href="http://techblog.byllemos.com/tag/ftp/feed/" rel="self" type="application/rss+xml" />
	<link>http://techblog.byllemos.com</link>
	<description>Accelerating into the Future with Wisdom about Technology! Ingrid Byllemos</description>
	<lastBuildDate>Tue, 05 Jan 2010 00:04:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Uploading a file with FTP from Navision</title>
		<link>http://techblog.byllemos.com/2009/06/uploading-a-file-with-ftp-from-navision/</link>
		<comments>http://techblog.byllemos.com/2009/06/uploading-a-file-with-ftp-from-navision/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 18:08:56 +0000</pubDate>
		<dc:creator>iby</dc:creator>
				<category><![CDATA[Navision]]></category>
		<category><![CDATA[FTP]]></category>

		<guid isPermaLink="false">http://techblog.byllemos.com/?p=310</guid>
		<description><![CDATA[<p>Hi</p>
<p>I have earlier written an article about a FTP Automation. Now it is time to describe how to upload a file without the use of a Automation but with use of the standard FTP program.</p>
<p>The upload is done&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>Hi</p>
<p>I have earlier written an article about a FTP Automation. Now it is time to describe how to upload a file without the use of a Automation but with use of the standard FTP program.</p>
<p>The upload is done in 2 steps:
<ul>
<li>Build a put script</li>
<li>Use the put script to upload the file.</li>
</ul>
<p>So how do we build a put script? Take a look here:<span id="more-310"></span></p>
<p><!--DEVFMTCODE--><pre class="devcodeblock" title="cside"><div class="devcodeoverflow">Char1 := 13;
char2 := 10;

PutScriptFile.CREATE(Ftpdir + '\put.scr');

//Do the Login
PutScriptFile.WRITE(Username +FORMAT(Char1) +FORMAT(char2));
PutScriptFile.SEEK(PutScriptFile.POS-1);
PutScriptFile.WRITE(FTPPassword + FORMAT(Char1) +FORMAT(char2));
PutScriptFile.SEEK(PutScriptFile.POS-1);

//change to source dir
PutScriptFile.WRITE('cd '+ftpdir+ FORMAT(Char1) +FORMAT(char2));
PutScriptFile.SEEK (PutScriptFile.POS-1);

//Change to upload dir
PutScriptFile.WRITE('lcd ' + uploaddir + FORMAT(Char1) +FORMAT(char2));
PutScriptFile.SEEK(PutScriptFile.POS-1);

//Upload the files
PutScriptFile.WRITE('mput *.*'+ FORMAT(Char1) +FORMAT(char2));
PutScriptFile.SEEK(PutScriptFile.POS-1);

//End ftp connection
PutScriptFile.WRITE('quit'+ FORMAT(Char1) +FORMAT(char2));
PutScriptFile.SEEK (PutScriptFile.POS-1);
PutScriptFile.CLOSE;</div></pre><!--END_DEVFMTCODE--></p>
<p>Where PutScriptFile is a File.</p>
<p>Now that the Put Script is ready &#8211; all we have to do is use it together with the FTP command:</p>
<p><!--DEVFMTCODE--><pre class="devcodeblock" title="cside"><div class="devcodeoverflow">//First create a temp file containing the ftp command:
Commandfile.CREATE(ftpdir + '\upload.cmd');
Commandfile.WRITE('ftp -i -s:' +'put.scr ' + "FTP Server IP");
Commandfile.CLOSE;

//Now execute the command
FileName := ftpdir + '\upload.cmd';
WaitOnReturn := TRUE;
WshShell.Run(FileName,WindowType,WaitOnReturn);</div></pre><!--END_DEVFMTCODE--><br />
Where Commandfile is a File, and WshShell is defined as ‘Windows Script Host Object Model’.WshShell</p>
<p>That&#8217;s all &#8211; now you can upload a file with FTP</p>
]]></content:encoded>
			<wfw:commentRss>http://techblog.byllemos.com/2009/06/uploading-a-file-with-ftp-from-navision/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>What is FTP</title>
		<link>http://techblog.byllemos.com/2006/09/what-is-ftp/</link>
		<comments>http://techblog.byllemos.com/2006/09/what-is-ftp/#comments</comments>
		<pubDate>Fri, 29 Sep 2006 19:38:27 +0000</pubDate>
		<dc:creator>iby</dc:creator>
				<category><![CDATA[DOS]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[Operating Systems]]></category>

		<guid isPermaLink="false">http://techblog.byllemos.com/?p=41</guid>
		<description><![CDATA[<p>FTP (File Transfer Protocol) is used to transfer files between computers on a Network.</p>
<p>There a several ways to use ftp &#8211; here are some of them:</p>
<ul>
<li>From a command prompt &#8211; by using the command ftp</li>
<li>Directly in</li></ul><p>&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>FTP (File Transfer Protocol) is used to transfer files between computers on a Network.</p>
<p>There a several ways to use ftp &#8211; here are some of them:</p>
<ul>
<li>From a command prompt &#8211; by using the command ftp</li>
<li>Directly in a browser by using a url like: ftp://ftpserver</li>
<li>Using a ftp client</li>
</ul>
<p>In this article, we will be looking on the dos command ftp.<br />
<span id="more-41"></span><br />
First you have to start a dos prompt, by either</p>
<blockquote><p> chose Run -&gt; Type cmd or command</p></blockquote>
<p>or simple use the shortcut for the command prompt.</p>
<p>Next you have to move to / create a transfer directory. It is the directory that you would like to use for file transfer. Receive files will be stored here.</p>
<p>This is how you move between directories in dos:</p>
<blockquote>
<table>
<tr>
<td width="100">cd\</td>
<td>Go to the root directory (c:\)</td>
</tr>
<tr>
<td>cd..</td>
<td>Go one step back. Ex. you are standing in c:\aa\bb\cc a cd.. would place you in c:\aa\bb\</td>
</tr>
<tr>
<td>cd directory</td>
<td>Go to a specific directory.</td>
</tr>
</table>
</blockquote>
<p>Once you are standing in your transfer directory &#8211; you are ready for starting a ftp connection.</p>
<blockquote><p>Type FTP followed by a space and the servername to which you will connect<br />
Ex. ftp my.ftpserver.com</p></blockquote>
<p>Now a connection to the server is initiated and you will be prompted for a username and password. If you are connecting to an anonymous server, the username is anonymous and the password is a email address.  Otherwise use you personal username and password.</p>
<p>If you are connected and have type a wrong password or username.  You can type user followed by enter &#8211; and you will once again be asked to enter your username and password.</p>
<p>When your username and password has been acknowledged you are ready to move around and transfer files.</p>
<blockquote><p>To change directories use the cd command<br />
To list files in a directory use the ls or dir command</p></blockquote>
<p>When you first have found the files that you want to get from the ftpserver you can collect them  by doing the following:</p>
<p>If it is not a textfile you have to change the tranfer mode to binary</p>
<blockquote><p>To transfer a binary file, enter binary at the prompt.<br />
Ex.:</p>
<blockquote><p>ftp&gt; binary<br />
200 Type set to I<br />
ftp&gt;</p></blockquote>
</blockquote>
<p>and collect the file by using the get command followed by a space and the name of the file.</p>
<blockquote><p> Ex.</p>
<blockquote><p> ftp&gt; get demo.exe<br />
200 PORT command successful. Consider using PASV.<br />
150 Opening BINARY mode data connection for demo.exe (1019 bytes).<br />
226 File send OK.<br />
ftp: 1019 byte modtaget i 0,01 sekunder 101,90 ved Kbyte/sek.<br />
ftp&gt;</p></blockquote>
</blockquote>
<p>You can transfer a file to the ftp server by using the put command followed by a space and a filename.</p>
<blockquote><p>Ex.</p>
<blockquote><p> ftp&gt; put test.txt<br />
200 PORT command successful. Consider using PASV.<br />
150 Ok to send data.<br />
226 File receive OK.<br />
ftp: 1019 byte sendt i 0,00 sekunder 1019000,00 ved Kbyte/sek.<br />
ftp&gt;</p></blockquote>
</blockquote>
<p>To end the ftp session use the bye command.</p>
]]></content:encoded>
			<wfw:commentRss>http://techblog.byllemos.com/2006/09/what-is-ftp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

