473,412 Members | 2,096 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

Run program on web server after file upload

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
Jul 19 '05 #1
2 2336
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" <na***********@optusnet.com.au> wrote in message
news:#i**************@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

Jul 19 '05 #2
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...13545&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!
Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: PeterB | last post by:
Hi! I'm using Pure ASP File Upload (http://www.asp101.com/articles/jacob/scriptupload.asp) to upload a file from a client to a server. I am testing both on a local IIS and a remote server. The...
4
by: Evgeny Zoldin | last post by:
Hi ALL. I would like to download file from some web-server that requires Basic-Authetication, change somthing in the file and upload it back to the server. I can download the file and proceed...
1
by: Chris | last post by:
Hi, how do I develop the following 'simple' program using ASP.NET webforms : a client has a text-file (aaa.txt) that has to be manipulated by code located on the server, the server would then...
6
by: Pat Carden | last post by:
Hi, We need to allow webusers to upload a file on our website (on Server3, all servers run Server 2003, remotely hosted) and eventually save it on our SBS Server (Server2) which is not exposed...
3
by: Gavin | last post by:
I need some help, I need the code to allow people that visit my website to be able to upload pictures to a file on my web server. I have been able to get close, but not quite there yet. Set fso...
0
by: cherry | last post by:
Dear All, I have written a program in sharepoint, in which will call a Web Service of another Sharepoint portal server so that documents from sharepoint portal server A can push document to...
15
by: CSharpguy | last post by:
I need to upload a file to an FTP server, can someone point me to some code that connects to an FTP server and uploads a file?
3
by: c676228 | last post by:
Hi everyone, I will develop a program to enroll a group of people on-line. Since we don't have number limitation for the people in the group. I am wondering if there is any company allow people...
4
by: AshishMishra16 | last post by:
HI friends, I am using the Flex to upload files to server. I m getting all the details about the file, but I m not able to upload it to Server. Here is the code i m using for both flex & for...
4
by: kberish | last post by:
Hi, I am relatively new to ASP .NET / VB .NET. I want to be able to a take a program I compiled and upload any type of file to a server using POST method. I have seen many examples written for...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.