Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 897
  • Last Modified:

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
0
jefmelkenbeek
Asked:
jefmelkenbeek
  • 2
1 Solution
 
jefmelkenbeekAuthor Commented:
i mean process.start ("file")
0
 
Mike TomlinsonMiddle 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
 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now