Map a drive to an ftp share



John Bailo
07-09-2005, 11:26 PM
I build an NT service using the FileSystemWatcher() class to detect when
new files arrive at our ftp server.

Now I want to configure it to watch for files on someone else's remote
server.

Questions:

1. Can I map a drive letter to an ftp share?

2. Do you think the FileSystemWatcher class can respond in the same way
when monitoring a remote ftp site as it does when watching a local
directory?

Specifically, can it raise an event for the creation of a new file on
the ftp directory?

John Bailo
07-09-2005, 11:26 PM
John Bailo wrote:
>
>
> I build an NT service using the FileSystemWatcher() class to detect when
> new files arrive at our ftp server.
>
> Now I want to configure it to watch for files on someone else's remote
> server.
>
> Questions:
>
> 1. Can I map a drive letter to an ftp share?
>
> 2. Do you think the FileSystemWatcher class can respond in the same way
> when monitoring a remote ftp site as it does when watching a local
> directory?
>
> Specifically, can it raise an event for the creation of a new file on
> the ftp directory?

Ok, after a little browsing I find something called the NetHood.

It seems to let me browser my Network Neighborhood places as directories
-- somewhat. I am able to open a cmd window, and cd into the NetHood
and then the ftp sites, with the name ftp.mysite.com being the directory
name.

However It doesn't seem to show the ftp sites in a "logged in" mode.

Is there a way to have them display as they would when logged in via
Windows?

Can I issue a logon at the command line to one of my /NetHood/ sites?

John Bailo
07-09-2005, 11:26 PM
John Bailo wrote:
> John Bailo wrote:
>
>>
>>
>> I build an NT service using the FileSystemWatcher() class to detect
>> when new files arrive at our ftp server.
>>
>> Now I want to configure it to watch for files on someone else's remote
>> server.
>>
>> Questions:
>>
>> 1. Can I map a drive letter to an ftp share?
>>
>> 2. Do you think the FileSystemWatcher class can respond in the same
>> way when monitoring a remote ftp site as it does when watching a local
>> directory?
>>
>> Specifically, can it raise an event for the creation of a new file on
>> the ftp directory?
>
>
> Ok, after a little browsing I find something called the NetHood.
>
> It seems to let me browser my Network Neighborhood places as directories
> -- somewhat. I am able to open a cmd window, and cd into the NetHood
> and then the ftp sites, with the name ftp.mysite.com being the directory
> name.
>
> However It doesn't seem to show the ftp sites in a "logged in" mode.
>
> Is there a way to have them display as they would when logged in via
> Windows?
>
> Can I issue a logon at the command line to one of my /NetHood/ sites?
>

I guess not -- NetHood isn't what I thought -- it just seems like a
container for some *.lnk files that then perform some magic.

The original query stands.

David Candy
07-09-2005, 11:26 PM
Moron you don't define your terms. There is no file watcher class on windows only FileChangeNotification object. Explorer uses one of these on every window you have open.

--
----------------------------------------------------------

"John Bailo" <jabailo@texeme.com> wrote in message news:fqmdncSvL6KUkxjfRVn-jg@speakeasy.net...
>
>
> I build an NT service using the FileSystemWatcher() class to detect when
> new files arrive at our ftp server.
>
> Now I want to configure it to watch for files on someone else's remote
> server.
>
> Questions:
>
> 1. Can I map a drive letter to an ftp share?
>
> 2. Do you think the FileSystemWatcher class can respond in the same way
> when monitoring a remote ftp site as it does when watching a local
> directory?
>
> Specifically, can it raise an event for the creation of a new file on
> the ftp directory?

John Bailo
07-09-2005, 11:26 PM
David Candy wrote:
> Moron you don't define your terms. There is no file watcher class on windows only FileChangeNotification object.


Wow. Maybe you should write MSDN and tell them about this then:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemiofilesystemwatcherclassctortopic.asp


Initializes a new instance of the FileSystemWatcher class.
Overload List

Initializes a new instance of the FileSystemWatcher class.

[Visual Basic] Public Sub New()

[C#] public FileSystemWatcher();

[C++] public: FileSystemWatcher();

[JScript] public function FileSystemWatcher();










Explorer uses one of these on every window you have open.
>


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

kurttrail
07-09-2005, 11:26 PM
David Candy wrote:
> Moron you don't define your terms. There is no file watcher class on
> windows only FileChangeNotification object. Explorer uses one of
> these on every window you have open.

He is just trolling. Wants to get people to waste their time on him.
All he is good for is to make fun of.

--
Peace!
Kurt
Self-anointed Moderator
microscum.pubic.windowsexp.gonorrhea
http://microscum.com/mscommunity
"Trustworthy Computing" is only another example of an Oxymoron!
"Produkt-Aktivierung macht frei"

John Bailo
07-09-2005, 11:26 PM
kurttrail wrote:
> David Candy wrote:
>
>>Moron you don't define your terms. There is no file watcher class on
>>windows only FileChangeNotification object. Explorer uses one of
>>these on every window you have open.
>
>
> He is just trolling. Wants to get people to waste their time on him.
> All he is good for is to make fun of.
>

At least I have a job...

BTW :

Check out my new home page:

http://www.texeme.com



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

John Timney \(ASP.NET MVP\)
07-09-2005, 11:26 PM
John - I believe the file watcher classes can look at a remote drive and
monitor its activity by using a UNC path - if it has the correct
permissions. An ftp drive is just a directory opened to port 21, so you can
ignore the ftp element and just monitor the drive if you can map to it using
unc from your code.

Sorry, I dont have an example for you.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"John Bailo" <jabailo@texeme.com> wrote in message
news:fqmdncSvL6KUkxjfRVn-jg@speakeasy.net...
>
>
> I build an NT service using the FileSystemWatcher() class to detect when
> new files arrive at our ftp server.
>
> Now I want to configure it to watch for files on someone else's remote
> server.
>
> Questions:
>
> 1. Can I map a drive letter to an ftp share?
>
> 2. Do you think the FileSystemWatcher class can respond in the same way
> when monitoring a remote ftp site as it does when watching a local
> directory?
>
> Specifically, can it raise an event for the creation of a new file on the
> ftp directory?

kurttrail
07-09-2005, 11:26 PM
NoStop wrote:
> kurttrail wrote:
>
>> John Bailo wrote:
>>> kurttrail wrote:
>>>> David Candy wrote:
>>>>
>>>>> Moron you don't define your terms. There is no file watcher class
>>>>> on windows only FileChangeNotification object. Explorer uses one
>>>>> of these on every window you have open.
>>>>
>>>>
>>>> He is just trolling. Wants to get people to waste their time on
>>>> him. All he is good for is to make fun of.
>>>>
>>>
>>> At least I have a job...
>>
>> I thought you milked male horses for your pleasure.
>>
>>> BTW :
>>>
>>> Check out my new home page:
>>>
>>> http://www.texeme.com
>>
>> LOL!
>>
>> How long did it take you to write the html?
>>
>> <html>
>> <head>
>> <title>Texeme</texeme>
>> </head>
>> <body>
>> <img src="texemewelcome.JPG">
>> </body>
>> </html>
>>
> Quit picking on John.

Make me.

> At least his website offers more useful
> information that yours does. :-)

LOL! No doubt he developed the page on a Linux machine!

--
Peace!
Kurt
Self-anointed Moderator
microscum.pubic.windowsexp.gonorrhea
http://microscum.com/mscommunity
"Trustworthy Computing" is only another example of an Oxymoron!
"Produkt-Aktivierung macht frei"

John Bailo
07-09-2005, 11:26 PM
John Timney (ASP.NET MVP) wrote:

> John - I believe the file watcher classes can look at a remote drive and
> monitor its activity by using a UNC path - if it has the correct
> permissions. An ftp drive is just a directory opened to port 21, so you
> can ignore the ftp element and just monitor the drive if you can map to it
> using unc from your code.
>
> Sorry, I dont have an example for you.
>

Thanks John!

That's the answer I was hoping for.

Does anyone else have an idea for mapping a drive or unc addressing an ftp
share?

I spent about 4 hours Googling, but couldn't find the answer.

The best I could find is the "NetHood" but that just seems a set of links to
ftp sites -- not actually drive/directories that I can us.

--
Texeme
http://www.texeme.com

David Candy
07-09-2005, 11:26 PM
Why do you keep asking .net questions in a Windows group. FindFirstChangeNotification works on network drives.

--
----------------------------------------------------------

"John Bailo" <jabailo@texeme.com> wrote in message news:7cednRRdy-3kKxjfRVn-hA@speakeasy.net...
> John Timney (ASP.NET MVP) wrote:
>
>> John - I believe the file watcher classes can look at a remote drive and
>> monitor its activity by using a UNC path - if it has the correct
>> permissions. An ftp drive is just a directory opened to port 21, so you
>> can ignore the ftp element and just monitor the drive if you can map to it
>> using unc from your code.
>>
>> Sorry, I dont have an example for you.
>>
>
> Thanks John!
>
> That's the answer I was hoping for.
>
> Does anyone else have an idea for mapping a drive or unc addressing an ftp
> share?
>
> I spent about 4 hours Googling, but couldn't find the answer.
>
> The best I could find is the "NetHood" but that just seems a set of links to
> ftp sites -- not actually drive/directories that I can us.
>
> --
> Texeme
> http://www.texeme.com

John Bailo
07-09-2005, 11:26 PM
"David Candy" <.> wrote:

> Why do you keep asking .net questions in a Windows group.
> FindFirstChangeNotification works on network drives.
>

I agree with you.

But how do you set up an ftp site as a network drive?

--
Texeme
http://www.texeme.com

David Candy
07-09-2005, 11:26 PM
Write a network redirector for it.

--
----------------------------------------------------------

"John Bailo" <jabailo@texeme.com> wrote in message news:E7idnTGO86ZvXRjfRVn-pQ@speakeasy.net...
> "David Candy" <.> wrote:
>
>> Why do you keep asking .net questions in a Windows group.
>> FindFirstChangeNotification works on network drives.
>>
>
> I agree with you.
>
> But how do you set up an ftp site as a network drive?
>
> --
> Texeme
> http://www.texeme.com

John Bailo
07-09-2005, 11:26 PM
"David Candy" <.> wrote:

> Write a network redirector for it.
>

I probably just want this:

http://www.microsoft.com/windowsserversystem/sfu/default.mspx

and then set up nfs to the ftp site



--
Texeme
http://www.texeme.com

johnsuth@nospam.com.au
07-09-2005, 11:28 PM
In <E7idnTGO86ZvXRjfRVn-pQ@speakeasy.net>, John Bailo <jabailo@texeme.com> writes:
>
>But how do you set up an ftp site as a network drive?


This product might help if there is a Windows version.

http://www.bmtmicro.com/BMTCatalog/os2/netdrive.html

I have not tried mounting ftp sites, but I mount CD images on the HDD as though they were CDs in the CD drive.

Kevin Brunt (Fat B@stard)!!
07-09-2005, 11:29 PM
Candy's message was completely unnecessary. People can ask all sorts of questions wheher simple or not. This newsgroup is to help people with their problems. How does a question make someone moron is beyond me!! Candy Floss should apologise immediately to John. In any case, the question wasn't posed specifically for Candy Floss so how did it touch his raw nerve needs a detailed investigation at the highest level! Perhaps, that nerve is raptured inserting uncle Bill's SP2 patch!!!

Kev




David Candy wrote:
>
> Moron you don't define your terms. There is no file watcher class on windows only FileChangeNotification object. Explorer uses one of these on every window you have open.
>
> --
> ----------------------------------------------------------
>
> "John Bailo" <jabailo@texeme.com> wrote in message news:fqmdncSvL6KUkxjfRVn-jg@speakeasy.net...
> >
> >
> > I build an NT service using the FileSystemWatcher() class to detect when
> > new files arrive at our ftp server.
> >
> > Now I want to configure it to watch for files on someone else's remote
> > server.
> >
> > Questions:
> >
> > 1. Can I map a drive letter to an ftp share?
> >
> > 2. Do you think the FileSystemWatcher class can respond in the same way
> > when monitoring a remote ftp site as it does when watching a local
> > directory?
> >
> > Specifically, can it raise an event for the creation of a new file on
> > the ftp directory?

Jason Newell
07-09-2005, 11:31 PM
John,
Looks like http://www.knoware.com/index.php?pg=./products/inpro/index
has a $40 solution for ftp drive mapping.

Jason Newell, MCAD
Software Engineer

John Bailo wrote:
> John Timney (ASP.NET MVP) wrote:
>
>
>>John - I believe the file watcher classes can look at a remote drive and
>>monitor its activity by using a UNC path - if it has the correct
>>permissions. An ftp drive is just a directory opened to port 21, so you
>>can ignore the ftp element and just monitor the drive if you can map to it
>>using unc from your code.
>>
>>Sorry, I dont have an example for you.
>>
>
>
> Thanks John!
>
> That's the answer I was hoping for.
>
> Does anyone else have an idea for mapping a drive or unc addressing an ftp
> share?
>
> I spent about 4 hours Googling, but couldn't find the answer.
>
> The best I could find is the "NetHood" but that just seems a set of links to
> ftp sites -- not actually drive/directories that I can us.
>

PhoenixGB
07-10-2005, 12:39 AM
Try this, Netdrive, seems to do the job just fine.

http://www.mathematics.jhu.edu/help/netuse-webdav.htm

Kev


--
PhoenixGBPosted from http://www.pcreview.co.uk/ newsgroup access


Map a drive to an ftp share