Results 1 to 2 of 2

Thread: .vbs from vb

  1. #1

    Thread Starter
    Fanatic Member eimroda's Avatar
    Join Date
    Jul 2000
    Location
    Philippines
    Posts
    642

    .vbs from vb

    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?)
    On Error GoTo Hell

    Hell:
    Kill Me


    Food For Thought:

    - Do not judge a book... if you're not a judge!


  2. #2
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    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.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width