Calling VBS from a webservice

S

Serdar C.

hi there, i have to use a statistical program called (R-Project) to
calculate some data on the server. so i decided to write a webservice that
calls the program.. but the problem is that program dont have a .net
compability for communicationg with the client. only supports JAVA and
ASP(vb script)
so i wrote a vbscript for that program but now i need to call the
"calculate.vbs" from the service. (the program must run from the
serverside).. thanx for helping. have a nice day.
 
M

Mark Rae

Serdar C. said:
hi there, i have to use a statistical program called (R-Project) to
calculate some data on the server. so i decided to write a webservice that
calls the program.. but the problem is that program dont have a .net
compability for communicationg with the client. only supports JAVA and
ASP(vb script)
so i wrote a vbscript for that program but now i need to call the
"calculate.vbs" from the service. (the program must run from the
serverside).. thanx for helping. have a nice day.

Assuming your service has sufficient permissions, and can see
calculate.vbs...

using System.Diagnostics;

Process objProcess = new Process();
objProcess.StartInfo.FileName = "calculate.vbs";
objProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
objProcess.StartInfo.CreateNoWindow = true;
objProcess.Start();
objProcess.WaitForExit();
 
S

Serdar C.

thank you for the information.. it was a long time not to write a program
lkie that :)

see ya
 

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,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top