How can I run a .vbs file from within my vb program? Please teach me how to do it locally, the vbs is in the same computer with the vb prog and when the vbs is in a web server (is this possible?)
Printable View
How can I run a .vbs file from within my vb program? Please teach me how to do it locally, the vbs is in the same computer with the vb prog and when the vbs is in a web server (is this possible?)
You can use the ShellExecute API function (see www.vbapi.com) to try to run them. Note that the .vbs file extension will have to associated with Windows Scripting Host for them to execute. If WSH isn't installed, or .vbs files are associated with Notepad (virus security), they won't execute.