472,363 Members | 2,067 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,363 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 3420
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: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and credentials and received a successful connection...
1
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
1
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...

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.