Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Starting a process on the server from a web page

Reply
Thread Tools

Starting a process on the server from a web page

 
 
fatima.issawi@gmail.com
Guest
Posts: n/a
 
      02-15-2007

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

 
Reply With Quote
 
 
 
 
Alexey Smirnov
Guest
Posts: n/a
 
      02-15-2007
On Feb 15, 8:43 pm, (E-Mail Removed) 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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
3 ESSENTIAL TOOLS FOR STARTING AND MAINTAINING...3 ESSENTIAL TOOLSFOR STARTING AND MAINTAINING...3 ESSENTIAL TOOLS FOR STARTING ANDMAINTAINING... Oanh Bui C++ 0 04-27-2009 12:51 PM
3 ESSENTIAL TOOLS FOR STARTING AND MAINTAINING...3 ESSENTIAL TOOLSFOR STARTING AND MAINTAINING...3 ESSENTIAL TOOLS FOR STARTING ANDMAINTAINING... Oanh Bui C Programming 0 04-27-2009 12:51 PM
3 ESSENTIAL TOOLS FOR STARTING AND MAINTAINING...3 ESSENTIAL TOOLSFOR STARTING AND MAINTAINING...3 ESSENTIAL TOOLS FOR STARTING ANDMAINTAINING... Oanh Bui Python 0 04-27-2009 12:46 PM
How do I get the process id when starting a process using os.popen2 or os.popen3 on linux? mikem76@gmail.com Python 1 06-07-2006 10:27 PM
I want to do a process once per page process, but 'touch' all instances of my server control. Jason Kendall ASP .Net Web Controls 1 06-01-2005 07:06 PM



Advertisments