473,379 Members | 1,201 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

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?
Jul 21 '05 #1
23 3513
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?

Jul 21 '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"
Jul 21 '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.

Jul 21 '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
Jul 21 '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?

Jul 21 '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
Jul 21 '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"
Jul 21 '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"
Jul 21 '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
Jul 21 '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
Jul 21 '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"
Jul 21 '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

Jul 21 '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
Jul 21 '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
Jul 21 '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"
Jul 21 '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"
Jul 21 '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

Jul 21 '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"

Jul 21 '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?

Jul 21 '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
Jul 21 '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
Jul 21 '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?

Jul 21 '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"
Jul 21 '05 #24

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

Similar topics

1
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
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
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
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
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
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
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
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
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
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
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.