when I try consuming this method the method just hangs, if I look at the
processes I can see that the wscript is running but it just seems to hang.
shouldn't this be fairly trivial calling an external from within a
webservice ?
[WebMethod (Description="Changes Password calls
Change_Password.vbs",EnableSession = true)]
public string ChngPwd()
{
try {
Process proc = new Process();
proc.EnableRaisingEvents=true;
proc.StartInfo.FileName="wscript.exe";
proc.StartInfo.Arguments="c:\\myScript.vbs";
proc.Start();
proc.WaitForExit();
proc.Dispose();
return "ran change password";
}
catch (Win32Exception e)
{
return e.Message ;
}
}
}