Click here to Skip to main content
6,629,377 members and growing! (21,037 online)
Email Password   helpLost your password?
General Programming » Internet / Network » FTP     Intermediate License: The Code Project Open License (CPOL)

Application for uploading modified Files to a FTP Server

By Uwe Keim

Simple C# Console Application that uses a local MS-Access Database to store modification Dates of Files and uploads modified Files to a FTP Server
C#, Windows, .NET 1.0, Dev
Posted:12 Sep 2002
Updated:14 Oct 2002
Views:115,563
Bookmarked:60 times
Announcements
Loading...
 
Search    
Advanced Search
Add to IE Search
printPrint   add Share
      Discuss Discuss   Broken Article?Report  
17 votes for this article.
Popularity: 5.55 Rating: 4.51 out of 5
2 votes, 18.2%
1

2
1 vote, 9.1%
3
2 votes, 18.2%
4
6 votes, 54.5%
5

Introduction

This is a (greatly enhanced) .NET version of the code in my article "Perl Script for uploading modified files to a FTP-Server". Since most of the behaviour is completely the same, please read further details of the description in the article mentioned.

The whole purpose of the application is to upload files from your local Window PC (or LAN) to a FTP server or Windows file server, uploading only files and folders that you want (by a filter) and that actually changed since last upload (by comparing timestamp and filesize).

Installation

The application has no GUI at all, meaning that it is a .NET console application.

Before you use the FTPSync application the first time, please adjust the application-configuration in the file FtpSync.exe.config. This file is a regular .NET XML-configuration file; you can edit it with any text-editor.

Usage of the Application

The application is driven by configuration files with the file extension *.ftpsyncjob. E.g. MyWebsite.ftpsyncjob. You pass a configuration file as the first parameter when starting the application. These configuration files are XML, too.

The configuration files contain all the settings that are needed to upload files and folders to a FTP server. An example configuration file Example.ftpsyncjob is included in the downloads of this article. Open it in your prefered text editor and read the comments for a full description of all options.

History

In ascending order:

  • 2002-09-13 Initial release
  • 2002-09-14 Added Regular Expression support (see example .ftpsyncjob file)
  • 2002-10-12 Added more options, added multi-project support, added Windows-filesystem upload method support (in contrast to FTP upload method), renamed .ftpsync.config files to .ftpsyncjob files.

To mention...

The application is written in C# and is an enhanced version of the "FTP component written with fully managed code" by Alex Kwok. I enhanced it so that creation of FTP folders is possible and that the component handles virtual FTP folders on a Windows FTP server (which don't show up using the LIST FTP command). Thanks to Alex for the component!

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Uwe Keim


Member
Uwe does programming since 1989 with experiences in Assembler, C++, MFC and lots of web- and database stuff and now uses ASP.NET and C# extensively, too. He is also teached programming to students at the local university.

In his free time, he does climbing, running and mountain biking. You can watch him most of the day (and probably night) programming.

Some cool, free software from us:

Zeta Test - Integrated test management environment.
Zeta Producer - Intuitive Content Management System (CMS) for Windows.
Zeta Uploader - Easily send large files by e-mail.

Occupation: Software Developer
Company: zeta software GmbH
Location: Germany Germany

Other popular Internet / Network articles:

Article Top
You must Sign In to use this message board.
FAQ FAQ 
 
Noise Tolerance  Layout  Per page   
 Msgs 1 to 23 of 23 (Total in Forum: 23) (Refresh)FirstPrevNext
GeneralTo develop client server application for ftp Pinmemberb_men12321:02 12 Nov '06  
Generalbug at the getFileSize function Pinmemberhacx2k61:01 14 Oct '06  
Generalthanks PinmemberShiva Varshovi22:25 8 Mar '05  
GeneralRe: thanks Pinmembersmartentity22:14 3 Aug '05  
GeneralRe: thanks Pinmemberwebleo3:36 25 Nov '05  
GeneralHow to Move Files and Folders on a FTP server Pinmemberusmanm@vonemm.com21:35 22 Jul '04  
GeneralRe: How to Move Files and Folders on a FTP server Pinmembersharad161:29 28 Sep '04  
GeneralRe: How to Move Files and Folders on a FTP server Pinmemberkapil Kumar Garg21:30 24 Jan '07  
Generalscript fails if any file is deleted from local directory. Pinmembersavya3:06 2 Jun '04  
GeneralI love your code! Pinmemberbli-6217:22 14 May '03  
GeneralHey Uwe PinmemberBrian Delahunty10:05 10 Apr '03  
GeneralDead link PinmemberMrEyes1:37 25 Mar '03  
GeneralBugs Pinmemberzhoulhh21:23 22 Feb '03  
GeneralAny bugs found/fixed? PinmemberMatt Philmon9:41 21 Feb '03  
GeneralRe: Any bugs found/fixed? PinsitebuilderUwe Keim9:45 21 Feb '03  
GeneralLovely stuff PineditorPaul Watson3:10 17 Oct '02  
GeneralRe: Lovely stuff PinsitebuilderUwe Keim3:17 17 Oct '02  
GeneralMissing Files ? PinmemberKant7:30 15 Oct '02  
GeneralRe: Missing Files ? PinsitebuilderUwe Keim7:39 15 Oct '02  
GeneralIssues... But really cool idea PinmemberLaurent Kempé11:12 13 Sep '02  
GeneralRe: Issues... But really cool idea PinsitebuilderUwe Keim1:02 14 Sep '02  
GeneralRe: Issues... But really cool idea PinmemberLaurent Kempé1:43 14 Sep '02  
GeneralRe: Issues... But really cool idea PinsitebuilderUwe Keim1:05 14 Sep '02  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 14 Oct 2002
Editor: Chris Maunder
Copyright 2002 by Uwe Keim
Everything else Copyright © CodeProject, 1999-2009
Web10 | Advertise on the Code Project