DEVBUZZ Homepage FTP Controls for .NET Compact Framework
 
Web www.devbuzz.com
  HOME PAGE
  All Articles
  Advertise
  Consulting

 Development
  Discuss - Forums
  Still in the box?
  .Compact Framework
  Code Snippets
  SQL Server CE
  Database
  MS Resources
 Stores
  Developer Controls
  Pocket PC Hardware
  Pocket PC Software
  Pocket PC Books
  .NET CF Books
  Book Reviews
  SPB SW Discounts
  RESCO SW Discounts
 DEVBUZZ Info
  About Us
  Help
  Join our email list
  Links & Ratings
  Press & Comments
  Pocket PC version
  Software Reviews
  Hardware Reviews
 Authors
  Authors
  Article Guide
  Competitions
 Resources
  Developers
  Register
  Login

  SPB Discounts!
 Columnists
  Rick Winscot
 Past Blast
  Personal Media Ctr
  Gizmobility
  eVB Legacy
  Old news
  Hosted Software
  Wireless
  Newsletters
  Carl Davis
  Upton Au

 Pocket PC Registry
  Join the registry
  View current list
 Current Poll
Are you converting to .NET Compact Framework?
Yes, it has changed my life!
No, I'm sticking with eVB
.NET CF what's that`?

Current results
3431 votes so far
 Recent Forum Threads [goto forums]

Get Computername
read... (67 hits)


Great aid to development productivity
read... (82 hits)


ThreadingTimer sample code
read... (143 hits)


Multithreading with .NET CF
read... (194 hits)


Moving from eMbedded Visual Basic to Visual Basic .NET
read... (166 hits)


.NET Compact Framework 2.0 Service Pack 2
read... (226 hits)


Transfer Data from SQL Server 2000 to SQL Server Compact Edition
read... (298 hits)


This protocol version is not supported
read... (236 hits)


Converting Lowercase to uppercase wont work
read... (203 hits)


Direct access to MS SQL Server 2000
read... (374 hits)


Creating SDF file in Desktop
read... (513 hits)


Winsock in CF.NET
read... (316 hits)


Using Pocket Outlook to submit HTML page form with MAILTO action
read... (420 hits)


Missing file "System.Data.PocketPC.asmmeta.dll"
read... (268 hits)


HP iPAQ hw6915 Serial Port Issue
read... (309 hits)


Info on the recent forum changes
read... (341 hits)


SqlServer tools from Redgate
read... (383 hits)


Arrow keys and Hardware navigation button
read... (393 hits)


O2 XDA lls pin sync cable to comport
read... (322 hits)


Creating dynamic folders on Pocket PC OS
read... (299 hits)

Custom Windows Mobile software development.
LBS Challenge 2007
LBS Challenge Eight previous NAVTEQ Global LBS Challenge® participants have received venture capital funding and nine past LBS Challenge winners have launched commercial applications on major wireless carriers. Register your non-commercial LBS application in the 2007 NAVTEQ Global LBS Challenge in one of three regions: Americas, Europe-Middle East-Africa (EMEA) or Asia-Pacific(APAC). You could win a share of $2 million in prizes. This could be your year.
Dream. Develop. Win.

Development | .NET Compact Framework

FTP Controls for .NET Compact Framework
Written by Antoni Massó Mola  [author's bio]  [read 34138 times]
Edited by Derek

.NET Compact Framework   

Page 1 

FTP’ing with .NET Compact Framework

Mobile applications many times require sending and receiving data to and from a remote server. The most common, reliable and fast method to achieve this is using the File Transfer Protocol (FTP). With Trilium’s .NET CF FTP Control you can now incorporate these powerful functions right into your VB .NET project. Connecting, sending and receiving files from a remote server from within your .NET VB applications can now be done within minutes with this .NET CF Control.

Overview

The .NET CF FTP demo (link: http://www.triliumsoftware.com/downloads.html ) includes all the necessary files to run the project in your Pocket PC device and start using the File Transfer Protocol.

.NET CF FTP Control Functions

  • Connect / Disconnect to an FTP Server
  • Upload / Download files
  • Delete files
  • Rename files
  • Retrieve current directory
  • Change directory
  • Create directories
  • Delete directories
  • Rename directories
  • List files and folders
  • Get Error Response codes

Running the Project

The .NET CF FTP demo includes a VB .NET project and the required DLL’s to run the application on Pocket PC devices or the Pocket PC emulator. The DLL must be copied to the \windows directory in both the emulator and physical device.

FTP Functions Examples

Using Trilium’s .NET CF FTP control is very straightforward. Even developers who have never used .NET will find the demo project very intuitive and easy to use.

Connecting to an FTP Server

This example shows how to connect to a remote FTP server.

Public Declare Function ConnectServer Lib "TriliumNETFTP.dll" (ByVal strServer As String, ByVal strUserName As String, ByVal strPassword As String, ByVal bPassive As Boolean, ByVal iPort As Integer) As Boolean

strServer = FTP Server’s address “ftp.triliumsoftware.com”
strUserName = FTP UserName “user1”
strPassword = FTP Password “password1”
bPassive = true = Passive Connection | false = Non Passive Connection
iPort = FTP Server Port 21

Uploading a file

Public Declare Function UploadFile Lib "TriliumNETFTP.dll" (ByVal strFile As String, ByVal strFile2 As String, ByVal bBinary As Boolean) As Boolean

strFile = File “/File” Server File Name
strFile2 = File “/File” Pocket PC File Name

Downloading a file

Public Declare Function DownloadFile Lib "TriliumNETFTP.dll" (ByVal strFile As String, ByVal strFile2 As String, ByVal bBinary As Boolean) As Boolean

strFile = File “/File” Pocket PC File Name
strFile2 = File “/File” Server File Name

The demo project includes documentation on all the FTP functions of the .NET CF FTP Control.

Conclusion

Include FTP functionality to your VB .NET projects within minutes. FTP’ing from within your VB.NET applications has never been easier with Trilium’s .NET CF FTP control (http://www.triliumsoftware.com/downloads.html ). Visit Trilium's web site frequently, new .NET CF Controls and applications will soon be available.

Back to .NET Compact Framework | [Article Index]

 

Back to the top of the page.
Franson GPS tools for the Pocket PC Chris De Herrera's Windows CE Website Windows CE News & Information Source RESCO Software discounts
Copyright ©2000-2008 by DEVBUZZ.COM, Inc., TX. USA.