Run program on web server after file upload

N

Nathan Simpson

Hi,

Is it possible and how to run a program on our webserver after a file has
been uploaded? This is all server based.

We have a requirement that an end user uploads a file to our web server.
After the file has been uploaded the next line of code needs to call a
program installed on the webserver that runs a remote command on our AS/400.

TIA

Nathan
 
A

Aaron [SQL Server MVP]

Since running an executable requires elevated privileges (IUSR, the
anonymous user for ASP, is quite restricted), I suggest this approach
instead:

(a) When a file is uploaded, add an entry to a database.
(b) Have a script, or EXE, running from windows scheduler (every minute, or
every minutes, whatever)
(c) The script or EXE wakes up, checks the database, and executes any new
tasks that have been added.
(d) The script then calls a procedure that deletes/flags the processed row.
 
B

Bullschmidt

If the code on the same page won't wait for the upload to complete,
perhaps have a redirect toward the bottom of the page to another page
that then runs things as it should.

Response.Redirect "myotherpage.asp"

WshShell
Scott Mitchell - 5/14/2001 4:07:58 PM
http://www.aspmessageboard.com/forum/advanced.asp?M=213545&F=27&P=1

4GuysFromRolla.com : ASP FAQS : The Nature of Things
Question: How can I call an executable program from my ASP page? by Bill
Wilkinson - 10/17/2000
http://www.aspfaqs.com/aspfaqs/ShowFAQ.asp?FAQID=67

Best regards,
J. Paul Schmidt, Freelance ASP Web Designer
http://www.Bullschmidt.com
ASP Designer Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...


*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,156
Messages
2,570,878
Members
47,413
Latest member
KeiraLight

Latest Threads

Top