Calling VBS from a webservice

Discussion in 'ASP .Net' started by Serdar C., May 8, 2005.

  1. Serdar C.

    Serdar C. Guest

    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.
     
    Serdar C., May 8, 2005
    #1
    1. Advertisements

  2. Serdar C.

    Mark Rae Guest

    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();
     
    Mark Rae, May 8, 2005
    #2
    1. Advertisements

  3. Serdar C.

    Serdar C. Guest

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

    see ya
     
    Serdar C., May 8, 2005
    #3
  4. Serdar C.

    Mark Rae Guest

    ???
     
    Mark Rae, May 8, 2005
    #4
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.