|
Home > Archive > IIS ASP > June 2004 > Run program on web server after file upload
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Run program on web server after file upload
|
|
| Nathan Simpson 2004-06-26, 10:18 am |
| 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
| |
| Aaron [SQL Server MVP] 2004-06-26, 10:18 am |
| 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.
--
http://www.aspfaq.com/
(Reverse address to reply.)
"Nathan Simpson" <nathansimpson@optusnet.com.au> wrote in message
news:#iwb9LoWEHA.1656@TK2MSFTNGP09.phx.gbl...
> 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
>
>
| |
| Bullschmidt 2004-06-28, 8:55 am |
| 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/foru...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!
|
|
|
|
|