Results 1 to 4 of 4

Thread: Launch a program in VBS

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2001
    Posts
    35

    Launch a program in VBS

    In VB, if you want to launch a program you can do:

    Code:
    Shell "C:\windows\app.exe"
    is there an equivalent of this in VBS, or do I have to use that silly WScript.Shell thingy? I don't get it!

  2. #2

    Thread Starter
    Member
    Join Date
    Apr 2001
    Posts
    35

    Unhappy Boo hoo

    Please can somebody help me - this is really bugging me! Cheers,

    phAstA

  3. #3
    Hyperactive Member
    Join Date
    May 2000
    Location
    Or
    Posts
    316
    In vbs, this is the equivalent:

    Code:
    Dim WshShell
    
    Set WshShell = WScript.CreateObject("WScript.Shell")
    Return = WshShell.Run("notepad.exe", 1)

  4. #4

    Thread Starter
    Member
    Join Date
    Apr 2001
    Posts
    35
    PERFECT!!! That is superb! Thank you!

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