SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Rehab is for quiters! spartan's Avatar
    Join Date
    Apr 2002
    Location
    Cape Town, South Africa
    Posts
    343
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    oshell. and running a executable via VBscript

    ok first question is....

    what is the best way to run a file via vbscript.
    lets say I have a exe or batch file and I want to run it. how?

    and then..

    how do I do this...
    Code:
    var oShell = new ActiveXObject("Shell.Application");
    ...in vbscript?

    thanx
    Spartan
    ---------------------
    It's like our sergeant told us before one trip into the jungle. Men! Fifty of you are leaving on a mission. Twenty-five of you ain't coming back.
    -Mr.Payne

  2. #2
    Rehab is for quiters! spartan's Avatar
    Join Date
    Apr 2002
    Location
    Cape Town, South Africa
    Posts
    343
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok
    i solved nunber 2

    Code:
       set oShell = CreateObject("Shell.Application")
    	 oShell.ShellExecute "C:\ NOTEPAD.EXE", "", "", "open", "1"


    but does anyone know of better ways to skin the cat?
    Spartan
    ---------------------
    It's like our sergeant told us before one trip into the jungle. Men! Fifty of you are leaving on a mission. Twenty-five of you ain't coming back.
    -Mr.Payne


Bookmarks

Posting Permissions

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