Results 1 to 3 of 3

Thread: ShellExecute

  1. #1

    Thread Starter
    Hyperactive Member Dorothy's Avatar
    Join Date
    Feb 2001
    Posts
    310

    Question ShellExecute

    Iam Presently working with windows scripting host.
    What is the VBScript equivalent of VB's ShellExecute.?

    I need it to open an exe file

  2. #2
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    I'm pretty sure the Shell statement will work with priveledged VBScript running (and not ASP).
    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.

  3. #3
    Hyperactive Member
    Join Date
    May 2000
    Location
    Or
    Posts
    316
    You would create an instance of the shell object, and call it's run method.


    VB Code:
    1. Dim WshShell
    2.  
    3. Set WshShell=CreateObject("Wscript.Shell")
    4. WshShell.Run "iexplore.exe"

    Hope this helps.

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