473,685 Members | 2,928 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

UNC, ftp, FileSystemWatch er


I've posted parts of problems in other posts, but I thought I'd
consolidate my questions because I still don't have a solution.
Problem:

I want to use the creation of a file on a remote ftp site (running Unix)
as a trigger for other processes to start.
Platform:

Windows 2000 server running .Net
Remote ftp site running unix
Thoughts:

I thought that if I could somehow access an ftp site with UNC or map a
drive letter to the ftp site, I could use the FileSystemWatch er class to
monitor the ftp site.
Explorations:

In Windows Server 2000, I have not found any way yet to mount an ftp
site with a drive letter. I have not found a way to mount an ftp site
as a drive letter.

One poster recommended writing a network redirector -- however I don't
know if my skills are up to it...or if it's the right path. I would
like some verification... and I want to make sure there is not an easier
way before building such a thing in .net

I would prefer not to use any 3rd party windows software that

(a) costs real money or
(b) does not provide source code.

--
Texeme Textcasting Technology
http://texeme.com
Jul 21 '05 #1
7 4197
I would forget the FileSystemWatch er idea. All it does it wrap some Windows
specific API's, it just ain't going to work. If you can't write code for the
UNIX box I think you are left with polling for the change.

"John Bailo" <ja*****@texeme .com> wrote in message
news:FM******** ************@sp eakeasy.net...

I've posted parts of problems in other posts, but I thought I'd
consolidate my questions because I still don't have a solution.
Problem:

I want to use the creation of a file on a remote ftp site (running Unix)
as a trigger for other processes to start.
Platform:

Windows 2000 server running .Net
Remote ftp site running unix
Thoughts:

I thought that if I could somehow access an ftp site with UNC or map a
drive letter to the ftp site, I could use the FileSystemWatch er class to
monitor the ftp site.
Explorations:

In Windows Server 2000, I have not found any way yet to mount an ftp site
with a drive letter. I have not found a way to mount an ftp site as a
drive letter.

One poster recommended writing a network redirector -- however I don't
know if my skills are up to it...or if it's the right path. I would like
some verification... and I want to make sure there is not an easier way
before building such a thing in .net

I would prefer not to use any 3rd party windows software that

(a) costs real money or
(b) does not provide source code.

--
Texeme Textcasting Technology
http://texeme.com

Jul 21 '05 #2
Stelrad Doulton wrote:
I would forget the FileSystemWatch er idea. All it does it wrap some Windows
specific API's, it just ain't going to work. If you can't write code for the
UNIX box I think you are left with polling for the change.
Thanks, that's /exactly/ what I needed to know.

I'll go with a loop and put in a delay to adjust if the file is still
open or being created...unles s there's a way to examine file status from
..Net.


"John Bailo" <ja*****@texeme .com> wrote in message
news:FM******** ************@sp eakeasy.net...
I've posted parts of problems in other posts, but I thought I'd
consolidate my questions because I still don't have a solution.
Problem:

I want to use the creation of a file on a remote ftp site (running Unix)
as a trigger for other processes to start.
Platform:

Windows 2000 server running .Net
Remote ftp site running unix
Thoughts:

I thought that if I could somehow access an ftp site with UNC or map a
drive letter to the ftp site, I could use the FileSystemWatch er class to
monitor the ftp site.
Exploration s:

In Windows Server 2000, I have not found any way yet to mount an ftp site
with a drive letter. I have not found a way to mount an ftp site as a
drive letter.

One poster recommended writing a network redirector -- however I don't
know if my skills are up to it...or if it's the right path. I would like
some verification... and I want to make sure there is not an easier way
before building such a thing in .net

I would prefer not to use any 3rd party windows software that

(a) costs real money or
(b) does not provide source code.

--
Texeme Textcasting Technology
http://texeme.com


--
Texeme Textcasting Technology
http://texeme.com
Jul 21 '05 #3
FTP support is in .NET 2.0, until then you will need a 3rd party
implementation. There are lots about. You want one that exposes the last
modified property of the file as this one does:
http://www.enterprisedt.com/products...api/index.html

"John Bailo" <ja*****@texeme .com> wrote in message
news:fv******** ************@sp eakeasy.net...
Stelrad Doulton wrote:
I would forget the FileSystemWatch er idea. All it does it wrap some
Windows specific API's, it just ain't going to work. If you can't write
code for the UNIX box I think you are left with polling for the change.


Thanks, that's /exactly/ what I needed to know.

I'll go with a loop and put in a delay to adjust if the file is still open
or being created...unles s there's a way to examine file status from .Net.


"John Bailo" <ja*****@texeme .com> wrote in message
news:FM******** ************@sp eakeasy.net...
I've posted parts of problems in other posts, but I thought I'd
consolidat e my questions because I still don't have a solution.
Problem:

I want to use the creation of a file on a remote ftp site (running Unix)
as a trigger for other processes to start.
Platform:

Windows 2000 server running .Net
Remote ftp site running unix
Thoughts:

I thought that if I could somehow access an ftp site with UNC or map a
drive letter to the ftp site, I could use the FileSystemWatch er class to
monitor the ftp site.
Explorations :

In Windows Server 2000, I have not found any way yet to mount an ftp site
with a drive letter. I have not found a way to mount an ftp site as a
drive letter.

One poster recommended writing a network redirector -- however I don't
know if my skills are up to it...or if it's the right path. I would like
some verification... and I want to make sure there is not an easier way
before building such a thing in .net

I would prefer not to use any 3rd party windows software that

(a) costs real money or
(b) does not provide source code.

--
Texeme Textcasting Technology
http://texeme.com


--
Texeme Textcasting Technology
http://texeme.com

Jul 21 '05 #4
Hi,

I'll go with a loop and put in a delay to adjust if the file is still open
or being created...unles s there's a way to examine file status from .Net.


If you have access to the process that create the file you could ask to
create another file with the same name but with a different extension, this
"flag" file is created when the data file is ready to be downloaded.
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

Jul 21 '05 #5
Ignacio Machin ( .NET/ C# MVP ) wrote:
Hi,
I'll go with a loop and put in a delay to adjust if the file is still open
or being created...unles s there's a way to examine file status from .Net.

If you have access to the process that create the file you could ask to
create another file with the same name but with a different extension, this
"flag" file is created when the data file is ready to be downloaded.
cheers,

Good idea...unfortun ately, this is basically a 'read only' situation
from me as the orgin is a client's ftp site.

--
Texeme Textcasting Technology
http://texeme.com
Jul 21 '05 #6

Stelrad -- this is perfect! It's GNU licensed...

" edtFTPnet is the first choice of .NET developers worldwide for
incorporating FTP functionality into their applications.

edtFTPnet is Open Source, licensed under the LGPL, the GNU Lesser
General Public License.

This means you can freely embed edtFTPnet into your commercial .NET
applications, subject to the normal LGPL restrictions. Unrestricted
(non-GPL) source licenses can be also be purchased.

edtFTPnet/PRO provides SOCKS proxy support and secure FTP capabilities
via FTPS. "
Stelrad Doulton wrote:
FTP support is in .NET 2.0, until then you will need a 3rd party
implementation. There are lots about. You want one that exposes the last
modified property of the file as this one does:
http://www.enterprisedt.com/products...api/index.html

"John Bailo" <ja*****@texeme .com> wrote in message
news:fv******** ************@sp eakeasy.net...
Stelrad Doulton wrote:
I would forget the FileSystemWatch er idea. All it does it wrap some
Windows specific API's, it just ain't going to work. If you can't write
code for the UNIX box I think you are left with polling for the change.


Thanks, that's /exactly/ what I needed to know.

I'll go with a loop and put in a delay to adjust if the file is still open
or being created...unles s there's a way to examine file status from .Net.
"John Bailo" <ja*****@texeme .com> wrote in message
news:FM***** *************** @speakeasy.net. ..
I've posted parts of problems in other posts, but I thought I'd
consolida te my questions because I still don't have a solution.
Problem:

I want to use the creation of a file on a remote ftp site (running Unix)
as a trigger for other processes to start.
Platform:

Windows 2000 server running .Net
Remote ftp site running unix
Thoughts:

I thought that if I could somehow access an ftp site with UNC or map a
drive letter to the ftp site, I could use the FileSystemWatch er class to
monitor the ftp site.
Exploration s:

In Windows Server 2000, I have not found any way yet to mount an ftp site
with a drive letter. I have not found a way to mount an ftp site as a
drive letter.

One poster recommended writing a network redirector -- however I don't
know if my skills are up to it...or if it's the right path. I would like
some verification... and I want to make sure there is not an easier way
before building such a thing in .net

I would prefer not to use any 3rd party windows software that

(a) costs real money or
(b) does not provide source code.

--
Texeme Textcasting Technology
http://texeme.com



--
Texeme Textcasting Technology
http://texeme.com


--
Texeme Textcasting Technology
http://texeme.com
Jul 21 '05 #7
Ignacio Machin ( .NET/ C# MVP ) wrote:
Hi,
I'll go with a loop and put in a delay to adjust if the file is still open
or being created...unles s there's a way to examine file status from .Net.

If you have access to the process that create the file you could ask to
create another file with the same name but with a different extension, this
"flag" file is created when the data file is ready to be downloaded.


My current implementation is this:

I loop through all the files on the ftp server, and I do a
!File.Exists() on my local directory. If not, then I download it.

I like Stelrad's suggestion of employing add on libaries that let me
view the LastModified, so I can can look for files that appeared since
the last runtime -- that is more elegant because I don't need to
maintain an archive of all the files on my local folder.

I also looked at a tool called WebDrive. This is a shareware component
that will take and ftp site and let you map a drive letter to it.
Unfortunately the current version won't support FileSystemWatch er -
however, their support department tells me the 7.0 version, to be
released this summer, will...and that will make it a very good tool to have!

Then of course there's Net 2.0 -- I need to plow through those docs as
well...

--
Texeme Textcasting Technology
http://texeme.com
Jul 21 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
9103
by: Josh Usovsky | last post by:
I'm setting up a watched folder using FileSystemWatcher. When I drop a small file into the watched folder, I can respond to a .Created event and process the file with other code. However, if I try copying a large file into the watched folder, the .Created event is fired off immediately and not when the file is finished copying. I have tried waiting for a certain number of .Changed events to be fired after the initial .Created event, and...
1
3329
by: Troy Murphy | last post by:
How do I prevent the FileSystemWatcher event to keep firing while the file is being created? When copying a file to the watched folder, the event fires a dozen or more times! Also, the documentation states that if more than one file is copied to the folder at the same time, a cache will queue them up for processing, but when I drop 3 files into this folder, only the 1st (sometimes the first two) cause the event to fire. Thanks, Troy
7
4119
by: Allen Anderson | last post by:
I'm trying to figure out a way to catch when a file has been written to a directory. I currently have it where I can catch when the file begins writing, but this isn't helpful as I need to know when its done. Does anyone know the right combination of flags to use to catch when the file has been written and closed? (here is my current code). // member variable FileSystemWatcher watcher = new FileSystemWatcher();
2
2220
by: Jet Leung | last post by:
Hi all, I had made a program to watching files in my directory. I had used a instance of FileSystemWatcher to do my work.And I had add some events of the FileSystemWatcher , for example onChange, onRename and so on. And I had made this program as a windows service.As I know, if I delete a file from my directory, this behavior will active this program and do something what I want to do. But after I install this program as a windows service...
13
9166
by: David | last post by:
I have been working on trying to write a directory watcher service. One of the requirments is that it be able to watch multiple directories, not sub directories of one parent directory, but just multiple directories. I have hit a snag and don't know how to get around it. Basically I read in a list of directories from the app.config and stuff them into an array, so that I have something like this: sDirsToWatch = "C:\Temp"
3
14287
by: Stampede | last post by:
Hi, I want to use the FileSystemWatcher in a Windows Service. I read an article, where the author created the FileSystemWatcher object in a seperate thread and when the event is fired, he started a working thread for processing the file, created a new FileSystemWatcher (as he said for real time processing), and then called the join method for the first thread. I can't really see the sence in this. Aren't the events of the...
20
4465
by: J-T | last post by:
We are working on an asp.net application which is a 3-tier application.I was aksed to create a component which monitors a folder and gets the file and pass them to a class library in our business logic layer(so far so good and easy).I initialize my class which is using a FileSystemWatcher in my Global.asax and everything works fine.I have found FileSystemWatcher class not very reliable and sometimes it behavies unexpectedly.I'm afriad that...
12
7448
by: ljh | last post by:
Has anyone else noticed that the FileSystemWatcher raises the changed event twice when a file is changed? Do you have any idea why this is the case?
5
24159
by: Goran Djuranovic | last post by:
Hi all, I have a file system watcher service that works fine on a local hard drive, but will not work across the network. I tried both: mapping the drive and "\\..." path both no luck. I don't receive any errors, it is just that FileSystemWatcher doesn't see any files dropped in the folder. What could be wrong? Thanks Goran
5
5595
by: =?Utf-8?B?Sm9obiBT?= | last post by:
I am trying to find out if there is a way to tell if there is already a filesystemwatcher (created by a webservice) monitoring a folder. I have a webservice that creates a filesystemwatcher, monitors a folder and then returns the contents of the new/changed files. However, if the client app loses connection to the webservice without closing the filewatcher, and then reconnects (and thus creates a new watcher), I believe I end up with...
0
8577
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
8761
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8773
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7589
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6431
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5792
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4523
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2938
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2198
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.