Link to home
Start Free TrialLog in
Avatar of eagle_ea
eagle_ea

asked on

pass paramters while executing vbscript from c sharp

hello
i'm calling a vbscript from c sharp using the below command,
 System.Diagnostics.Process.Start("test.vbs")
is there an option to pass a parameter from csharp to vbscript in the aboce command.
also, retrieve the value in the vbscript?
Avatar of Bill Prew
Bill Prew

I believe this looks like:

System.Diagnostics.Process.Start("test.vbs", "args")

where args are the command line parms you want to pass, just like you could have entered from a command line.

~bp
Avatar of eagle_ea

ASKER

how to get the value in the vbscript?
ASKER CERTIFIED SOLUTION
Avatar of Bill Prew
Bill Prew

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial