title: run vbs script file using C# code
body: <p>I am trying to execute a vbs file using C# code. The vbs file has the code to invoke an application on my machine. I am able to run the vbs script file when i run the C# code locally, but when i deploy my code to SharePoint environment it looks like it is not even executing the file. I dont receive any error message or any message i added in the vbs script file. Below is the C# code i am using to run the vbs script file. Can someone please tell me if i am missing anything here?</p>
  
  <p><strong>C# Code:</strong></p>
  
  <pre><code>  Process scriptProc = new Process();
      scriptProc.StartInfo.FileName = @"cscript";
      scriptProc.StartInfo.Arguments = @"//B //Nologo C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\template\layouts\segmentationtools\test1.vbs";
      scriptProc.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
      scriptProc.Start();
      scriptProc.WaitForExit();
      scriptProc.Close();
  </code></pre>
  
  <p><strong>VBS Code:</strong></p>
  
  <pre><code>Dim qtApp 
  Set qtApp = CreateObject("QuickTest.Application","Server IP address")
  MsgBox("Hello world")
  qtApp.Launch
  qtApp.Visible = True 
  </code></pre>