Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - Track Images added to images folder and subfolders - send out email alerts

 
Thread Tools Search this Thread
Old 01-04-2005, 03:16 PM   #1
Default Track Images added to images folder and subfolders - send out email alerts


Is anyone aware of an elegant method to 'track' changes (additions,
deletions, edits) to an online server on my web host...in this case various
sub folders in the /IMAGES/ directory...

The reason I ask is that I need to be able to alert internal staff to to new
images added to various boat models on our site without reverting to sending
out manual email notificaitons.

Really appreciate any adivce on ways to achieve this as a .NET newbie.

- Jason




  Reply With Quote
Old 01-04-2005, 03:33 PM   #2
Scott Allen
 
Posts: n/a
Default Re: Track Images added to images folder and subfolders - send out email alerts
You can use the FileSystemWatcher class from the System.IO namespace and
catch events when a file changes, or the contents of a directory change.

--
Scott
http://www.OdeToCode.com/blogs/scott/

> Is anyone aware of an elegant method to 'track' changes (additions,
> deletions, edits) to an online server on my web host...in this case
> various sub folders in the /IMAGES/ directory...
>
> The reason I ask is that I need to be able to alert internal staff to
> to new images added to various boat models on our site without
> reverting to sending out manual email notificaitons.
>
> Really appreciate any adivce on ways to achieve this as a .NET newbie.
>
> - Jason
>





Scott Allen
  Reply With Quote
Old 01-04-2005, 03:34 PM   #3
Eliyahu Goldin
 
Posts: n/a
Default Re: Track Images added to images folder and subfolders - send out email alerts
You can make a windows service that will watch the directory with
System.IO.FileSystemWatcher class. Look at System.Web.Mail namespace for
sending emails.

Eliyahu

<> wrote in message
news:...
> Is anyone aware of an elegant method to 'track' changes (additions,
> deletions, edits) to an online server on my web host...in this case

various
> sub folders in the /IMAGES/ directory...
>
> The reason I ask is that I need to be able to alert internal staff to to

new
> images added to various boat models on our site without reverting to

sending
> out manual email notificaitons.
>
> Really appreciate any adivce on ways to achieve this as a .NET newbie.
>
> - Jason
>
>





Eliyahu Goldin
  Reply With Quote
Old 01-04-2005, 09:45 PM   #4
 
Posts: n/a
Default Re: Track Images added to images folder and subfolders - send out email alerts
Ahhh...ok....thank you......but what if the folders are sitting with a
remote web host....is this still possible?


"Eliyahu Goldin" <> wrote in message
news:...
> You can make a windows service that will watch the directory with
> System.IO.FileSystemWatcher class. Look at System.Web.Mail namespace for
> sending emails.
>
> Eliyahu
>
> <> wrote in message
> news:...
> > Is anyone aware of an elegant method to 'track' changes (additions,
> > deletions, edits) to an online server on my web host...in this case

> various
> > sub folders in the /IMAGES/ directory...
> >
> > The reason I ask is that I need to be able to alert internal staff to to

> new
> > images added to various boat models on our site without reverting to

> sending
> > out manual email notificaitons.
> >
> > Really appreciate any adivce on ways to achieve this as a .NET newbie.
> >
> > - Jason
> >
> >

>
>





  Reply With Quote
Old 01-04-2005, 10:01 PM   #5
Eliyahu Goldin
 
Posts: n/a
Default Re: Track Images added to images folder and subfolders - send out email alerts
No, FileSystemWatcher won't get there. I can think about something based on
FTP for this scenario. The service could connect to the remote host
periodically via FTP, get the list of files and do the job.

Eliyahu

<> wrote in message
news:urA$...
> Ahhh...ok....thank you......but what if the folders are sitting with a
> remote web host....is this still possible?
>
>
> "Eliyahu Goldin" <> wrote in message
> news:...
> > You can make a windows service that will watch the directory with
> > System.IO.FileSystemWatcher class. Look at System.Web.Mail namespace for
> > sending emails.
> >
> > Eliyahu
> >
> > <> wrote in message
> > news:...
> > > Is anyone aware of an elegant method to 'track' changes (additions,
> > > deletions, edits) to an online server on my web host...in this case

> > various
> > > sub folders in the /IMAGES/ directory...
> > >
> > > The reason I ask is that I need to be able to alert internal staff to

to
> > new
> > > images added to various boat models on our site without reverting to

> > sending
> > > out manual email notificaitons.
> > >
> > > Really appreciate any adivce on ways to achieve this as a .NET newbie.
> > >
> > > - Jason
> > >
> > >

> >
> >

>
>





Eliyahu Goldin
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46