Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi,

 

Could anyone help me with the following:

 

I want to create a windows service application that sits in the background and monitors 2 or 3 IIS FTP sites (IIS is running on the same machine that this program will be running on) for upload activity, when files are uploaded to the FTP user accounts the windows service application should move the files to a seperate directory (c:\location1, c:\location2 etc).

 

I'd appretiate any help people can give - it's got me completely stumped :)

 

Kind Regards,

 

dan

  • *Gurus*
Posted

Is there a specific area you're having a problem with?

 

The key to doing this will be the FileSystemWatcher class. It can tell you when the files are created, and (I think) you'll be able to use it to tell when the files are closed by the ftp server. At that point you can move them.

MVP, Visual Developer - .NET

 

Now you see why evil will always triumph - because good is dumb.

 

My free .NET Windows Forms Controls and Articles

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...