473,396 Members | 2,129 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,396 software developers and data experts.

Starting a process on the server from a web page


Hello,

I am trying to start a process which will zip a file using a command
line utility from my webpage. I don't have any problems starting the
process (on my development machine, anyway), but once the process
starts, it doesn't return back to execute the rest of my code. I know
it finishes. It creates the zipped file. I also checked the task
manager, and the process exits in there too.

Does anyone know why this is? Does anyone have any suggestions to
implement what I am trying to do? Help!
The code I am using is (CompressFiles is called from my Page_Load):

private void CompressFiles(String[] strFile)
{
System.Diagnostics.Process myProc = new
System.Diagnostics.Process();

myProc = System.Diagnostics.Process.Start("\\\\sps69\\workl ocs\
\winzip\\wzzip.exe", "c:\\testzip.zip c:\\test.pdf");

string test = "we are done!"; // <<<------ I never come back
here or back to my Page_Load.
}
Thanks in advance for any help.

Regards,
Fatima

Feb 15 '07 #1
1 1302
On Feb 15, 8:43 pm, fatima.iss...@gmail.com wrote:
Hello,

I am trying to start a process which will zip a file using a command
line utility from my webpage. I don't have any problems starting the
process (on my development machine, anyway), but once the process
starts, it doesn't return back to execute the rest of my code. I know
it finishes. It creates the zipped file. I also checked the task
manager, and the process exits in there too.

Unable to Start a Process from ASP.NET
http://support.microsoft.com/kb/555134

Feb 15 '07 #2

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

Similar topics

12
by: serge calderara | last post by:
Dear all, I have an application which is suppose to start another executable process. As soon as that process is running, I need to retrive its handle. The problem of the particular process I am...
3
by: spmm# | last post by:
Hi! Can someone explain how I can properly start (e.g.) notepad from an ASP.NET/C# page?? I've been googling for a day now, but no one seems to experience the same trouble as I do. I gave...
2
by: Sara T. | last post by:
I always found that web page written by ASP.NET (VB.NET) generate error when starting at the first times. If I click refresh button on the IE again, it can work as well. What's wrong ? Again...
3
by: Lenny | last post by:
Hello, Some pages in ASP.NET application perform very process-intensive tasks (parsing large flat files, saving data to SQL Server, etc.. ) Some tasks might take longer to execute than users'...
1
by: John Wright | last post by:
I am trying to spawn a seperate process from my asp page so when a user clicks the link or button a desktop program is launched. This will be on an intranet and the program will exist on the...
4
by: Kristof Despiere | last post by:
Suppose you have one domain, filled with a couple of users. What needs to be done now is I need to start a windows application from a webform by pressing a button on the webform (for example). ...
3
by: PaulK via DotNetMonster.com | last post by:
Hi, I try to start an Authorware player from an ASP.Net application. The program starts (I can see it in the task manager) but nothing happens on the screen. I tried with Internet Explorer but the...
4
by: Phil Mc | last post by:
Say for example you have a application running on a windows 2003 server (that is on server, not from). This application needs to start child applications (must be stand alone console applications),...
7
by: tim | last post by:
Hi all, I want to execute a VB application from a ASP page (not .Net). Want I want to do is that I write some parameters to a database and then start the external application that will pickup...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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...

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.