how to call vbs file within

How can i call or run vbs within Like call a Function in In 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")
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

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...
jefmelkenbeekAuthor Commented:
i mean process.start ("file")
lojk.Net and Infrastructure ConsultantCommented:
wouldn't you would normally do

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

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

If you just did:


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

From novice to tech pro — start learning today.