Groups | Blog | Home
all groups > dotnet jscript > april 2004 >

dotnet jscript : New to Jscript Question



A
4/16/2004 2:47:50 PM
I am totally new to Jscript...I come from a C# shop

With that said, I am trying to call a process in my script but it wont
compile. My C# code looks like this:

private System.Diagnostics.Process proc = new Process();

ProcessStartInfo info = new ProcessStartInfo

....do some work here

proc.StartInfo = info;



You probably get the point. How can I make this "go" in Jscript? I am
buying a freakin' manual this weekend, but until then...

Thanks



bruce barker
4/16/2004 2:50:30 PM
if you are trying this from javascript.net it looks like:

import System.Diagnostics;
var proc : Process = new System.Diagnostics.Process();
var info : ProcessStartInfo = new ProcessStartInfo();
proc.StartInfo = info;

if your trying this in client script, there is no support.

-- bruce

[quoted text, click to view]

AddThis Social Bookmark Button