ASP.NET and Starting Proceses [yet another (hopefully the last) question]

S

Serdar C.

hi again.. i wrote a webservice like this:

[WebMethod]

public void DrawPlot()

{

System.Diagnostics.Process R = new System.Diagnostics.Process();

R.StartInfo.FileName = "plot.vbs";

R.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;

R.StartInfo.CreateNoWindow = true;

R.Start();


//R.WaitForExit();

}



which has to run the "plot.vbs" command when the service runs..

but i cant make it run.. i get a "this page cannot be displayed" error when
i run that method. what am i doin wrong? is there something that i need to
add into web.config or something elsE?



thanx for your time and helping..
 
S

Scott Allen

Hi Serdar:

I believe what you'll need to do is actually execute cscript.exe as
the process, and pass the script file as an argument.
 
S

Serdar C.

at last i have a working webservice...

thanx so much for helping, god bless the msdn :)


Scott Allen said:
Hi Serdar:

I believe what you'll need to do is actually execute cscript.exe as
the process, and pass the script file as an argument.

--
Scott
http://www.OdeToCode.com/blogs/scott/

hi again.. i wrote a webservice like this:

[WebMethod]

public void DrawPlot()

{

System.Diagnostics.Process R = new System.Diagnostics.Process();

R.StartInfo.FileName = "plot.vbs";

R.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;

R.StartInfo.CreateNoWindow = true;

R.Start();


//R.WaitForExit();

}



which has to run the "plot.vbs" command when the service runs..

but i cant make it run.. i get a "this page cannot be displayed" error when
i run that method. what am i doin wrong? is there something that i need to
add into web.config or something elsE?



thanx for your time and helping..
 

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

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top