473,503 Members | 1,648 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Map a drive to an ftp share



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?
Nov 17 '05 #1
23 2148
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?

Nov 17 '05 #2
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?


LOL! After spamming XP gen, do you really expect an answer from here?

--
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"
Nov 17 '05 #3
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.

Nov 17 '05 #4
kurttrail wrote:

LOL! After spamming XP gen, do you really expect an answer from here?

Hi,

It's an old technique to try and muddy the waters by just attacking a
person randomly.

Unfortunately, the awareness of Usenet is way in advance of the
technology that you use.

Sorry charlie, you would have been a hit in the 90s when people were
first learning about Usenet -- but not here, not now.
--
Texeme Textcasting Technology
http://texeme.com
Nov 17 '05 #5
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" <ja*****@texeme.com> wrote in message news:fq********************@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?

Nov 17 '05 #6
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/de...sctortopic.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
Nov 17 '05 #7
John Bailo wrote:
kurttrail wrote:

LOL! After spamming XP gen, do you really expect an answer from
here?

Hi,

It's an old technique to try and muddy the waters by just attacking a
person randomly.

Unfortunately, the awareness of Usenet is way in advance of the
technology that you use.

Sorry charlie, you would have been a hit in the 90s when people were
first learning about Usenet -- but not here, not now.


Shows how much you know, this is far from random. You are a waste of
life. And the only place and time you would have been a hit would be
would have been before life appeared on the planet.

--
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"
Nov 17 '05 #8
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"
Nov 17 '05 #9
kurttrail wrote:
Shows how much you know, this is far from random. You are a waste of
life. And the only place and time you would have been a hit would be
would have been before life appeared on the planet.


Probably correct, given the appearance of your chromosome set at this
date and time.

--
Texeme Textcasting Technology
http://texeme.com
Nov 17 '05 #10
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
Nov 17 '05 #11
John Bailo wrote:
kurttrail wrote:
Shows how much you know, this is far from random. You are a waste of
life. And the only place and time you would have been a hit would be
would have been before life appeared on the planet.


Probably correct, given the appearance of your chromosome set at this
date and time.


You make no sense. Unless you are suggesting that I'm the only life
left on the planet at this date and time.

--
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"
Nov 17 '05 #12
it's a .net thing dickhead.

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

"John Bailo" <ja*****@texeme.com> wrote in message news:42**************@texeme.com...
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/de...sctortopic.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

Nov 17 '05 #13
kurttrail wrote:
John Bailo wrote:
kurttrail wrote:

Shows how much you know, this is far from random. You are a waste of
life. And the only place and time you would have been a hit would be
would have been before life appeared on the planet.


Probably correct, given the appearance of your chromosome set at this
date and time.

You make no sense. Unless you are suggesting that I'm the only life
left on the planet at this date and time.


Given the paucity of responses to my query about file systems, ftp and
expert mode...possibly true.

--
Texeme Textcasting Technology
http://texeme.com
Nov 17 '05 #14
David Candy wrote:
it's a .net thing dickhead.


Get with it Rumplestilksen.

..NET is the Windows OS

--
Texeme Textcasting Technology
http://texeme.com
Nov 17 '05 #15
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>

--
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"
Nov 17 '05 #16
John Bailo wrote:
kurttrail wrote:
John Bailo wrote:
kurttrail wrote:
Shows how much you know, this is far from random. You are a waste
of life. And the only place and time you would have been a hit
would be would have been before life appeared on the planet.
Probably correct, given the appearance of your chromosome set at
this date and time.

You make no sense. Unless you are suggesting that I'm the only life
left on the planet at this date and time.


Given the paucity of responses to my query about file systems, ftp and
expert mode...possibly true.


Nope, your dead, and I'm your tormenter.

--
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"
Nov 17 '05 #17
Except for the small fact windows doesn't use it.

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

"John Bailo" <ja*****@texeme.com> wrote in message news:vK********************@speakeasy.net...
David Candy wrote:
it's a .net thing dickhead.


Get with it Rumplestilksen.

.NET is the Windows OS

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

Nov 17 '05 #18
He's spam been pulled. No chinese wallpapers.

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

"kurttrail" <do*********@anywhereintheknowuniverse.org> wrote in message news:%2****************@tk2msftngp13.phx.gbl...
John Bailo wrote:
kurttrail wrote:
John Bailo wrote:

kurttrail wrote:
> Shows how much you know, this is far from random. You are a waste
> of life. And the only place and time you would have been a hit
> would be would have been before life appeared on the planet.
>

Probably correct, given the appearance of your chromosome set at
this date and time.
You make no sense. Unless you are suggesting that I'm the only life
left on the planet at this date and time.


Given the paucity of responses to my query about file systems, ftp and
expert mode...possibly true.


Nope, your dead, and I'm your tormenter.

--
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"

Nov 17 '05 #19
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" <ja*****@texeme.com> wrote in message
news:fq********************@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?

Nov 17 '05 #20
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. At least his website offers more useful information
that yours does. :-)

--

ø¤º°`°ø,¸¸,ø¤º°`°ø,¸¸,ø¤º°`°ø,¸¸,ø¤º°`°øø¤º°`°ø,¸¸ ,ø¤º°`°ø
Windows is *NOT* a virus. Viruses are small and efficient.
Legal Notice And Disclaimer:
http://www.euronet.nl/users/frankvw/legal.html
Nov 17 '05 #21
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
Nov 17 '05 #22
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" <ja*****@texeme.com> wrote in message news:fq********************@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?

Nov 17 '05 #23
Kevin Brunt (Fat B@stard)!! wrote:
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!!!


Obviously you don't have much experience with Ballo the Clown. Calling
him a moron is an insult to morons everywhere.

--
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"
Nov 17 '05 #24

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

Similar topics

1
3072
by: Serge | last post by:
Hi, i would map a network drive from a share on another server. it works fine with the net use command under user login but it do not work from an asp script or dll. is this that i have to...
6
9674
by: moonriver | last post by:
I write a program accessing files in network drive o:. It is doable as a standalone application. However, if it is running under windows service, the following exception will appear: 13/07/2004...
5
21537
by: Niloday | last post by:
Hi All, I am trying to access a mapped network drive from a service that I have created. The service needs to create/delete folders/files on a network drive. When I tried to connect to a...
1
3391
by: Max Baki via .NET 247 | last post by:
I all, i've write a sample ftp Windows service which download files and copy them on remote share or remote mapped drive (the service works fine on local drives). This part of code is the...
11
1512
by: Brett | last post by:
I have an assembly on a shared LAN drive. On my developer machine, I give that assembly full trust from the .NET wizard. It works fine. I go to a user machine on the LAN, map to the shared...
5
4445
by: Nirosh | last post by:
Hi All, Can any one suggest me a best way to do this .. I have a thrid party tool "EXE" that we need to use with our web service to manipulate some complex XML files, which reside in a...
2
9521
by: Dave Stewart | last post by:
I am attempting to write a vb.net windows service that will automate various file movements on my network. When I attempt to access files on a mapped drive or UNC file share, I get exceptions...
0
2545
by: jarmar | last post by:
We have a network share \\fileserver1\share that users have mapped individually/manually to any drive letter of there liking , not thru a login script. I have created a network share...
13
7053
by: =?Utf-8?B?RGF2ZQ==?= | last post by:
I am actually trying to get the UNC path of the main module of a process running from a mapped drive, and I am trying to do this from a service. The ProcessModule class only provides the full path...
5
5351
by: =?Utf-8?B?SmVycnkgQw==?= | last post by:
I am trying to accesss a Mapped Drive from my asp.net code running on IIS 6.0. I am using a FileUpload control and fileUpload.SaveAs() to save the file to the server. I want to save the file to...
0
7271
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7319
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6979
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...
0
7449
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...
0
5570
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,...
1
4998
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...
0
4666
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...
0
3149
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1498
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 ...

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.