ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old November 3rd, 2009, 03:58 AM
munchiez munchiez is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2006
Posts: 47 munchiez User rank is Sergeant Major (2000 - 5000 Reputation Level)munchiez User rank is Sergeant Major (2000 - 5000 Reputation Level)munchiez User rank is Sergeant Major (2000 - 5000 Reputation Level)munchiez User rank is Sergeant Major (2000 - 5000 Reputation Level)munchiez User rank is Sergeant Major (2000 - 5000 Reputation Level)munchiez User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Day 17 h 28 m 47 sec
Reputation Power: 36
Scanning folders for new files

Hi all, I was hoping for a bit of advice as I'm not sure how to go about scanning folders for new files.

I have a site where users can upload images via HTTP and FTP. The files are sent to the user's "uploads" directory for processing. At the moment the user clicks a "Scan new files" button which runs "scanfiles.asp" and any images in their upload directory are resized then moved into a different folder.

I'd really like to automate the scanning process but I'm a bit stuck on how to do this.

My thought at the moment is to create a .vbs file that is executed by the Task Scheduler every 10 seconds or so. The .vbs script would connect to the database to fetch the user list, then check each upload folder for new files and run the "scanfiles.asp" script if required.

My main concern is would this be a bit of a drain of server resources?

Any help or sugestions would be appreciated!

Reply With Quote
  #2  
Old November 3rd, 2009, 09:45 AM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
ASP Free God 48th Plane (28500 - 28999 posts)
 
Join Date: Sep 2004
Location: Israel
Posts: 28,838 Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)  Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2
Time spent in forums: 3 Months 2 Weeks 1 Day 14 h 30 m 10 sec
Reputation Power: 2389
Quote:
Originally Posted by munchiez
Hi all, I was hoping for a bit of advice as I'm not sure how to go about scanning folders for new files.

I have a site where users can upload images via HTTP and FTP. The files are sent to the user's "uploads" directory for processing. At the moment the user clicks a "Scan new files" button which runs "scanfiles.asp" and any images in their upload directory are resized then moved into a different folder.

I'd really like to automate the scanning process but I'm a bit stuck on how to do this.

My thought at the moment is to create a .vbs file that is executed by the Task Scheduler every 10 seconds or so. The .vbs script would connect to the database to fetch the user list, then check each upload folder for new files and run the "scanfiles.asp" script if required.

My main concern is would this be a bit of a drain of server resources?

Any help or sugestions would be appreciated!
every 10 seconds will indeed be big drain.
I would go in different way: when user is logging in, run the scan on
his folder one time. this will ensure he's "up to date" and you can also
run the scan after the user uploads new images via the website.

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingASP Development > Scanning folders for new files


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump





 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek