how to call vbs file within vb.net?

How can i call or run vbs within vb.net. Like call a Function in vb.net. In vb.net you can add new item vbs file, but i cannot find any information to call a vbs file.
what i need is:
     exp: function "vbs file"
and not:
     procedure.start ("c:\vbs file")
Thks
jefmelkenbeekAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Mike TomlinsonConnect With a Mentor Middle School Assistant TeacherCommented:
Do you mean that you have embedded the .vbs file in your application?...and you want to know how to run that embedded file?

If this is the case, then you need to extract the file and save it to your hard drive.  Then use Process.Start() to run it.  Don't think there is any other way round that...
0
 
jefmelkenbeekAuthor Commented:
i mean process.start ("file")
0
 
lojk.Net and Infrastructure ConsultantCommented:
wouldn't you would normally do

Process.Start("cscript.exe c:\vbs file")

?
0
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
Doesn't matter lojk...

If you just did:

    Process.Start("c:\someScript.vbs")

It would be run with WScript or CScript depending on what was set as the default on that system.
0
All Courses

From novice to tech pro — start learning today.