Is it possible to open Firefox on a certain page with VBS?


  • I found this code on google:


    sub shell(cmd)
    dim objShell
    Set objShell = WScript.CreateObject( "WScript.Shell" )
    Set objShell = Nothing
    end sub

    shell """C:\Program Files\Mozilla Firefox\firefox.exe"""



    I made a bot in Lua, and I wanted it to auto open firefox on a certain page whenever _ happens, and Lua can't do it. Is it possible with VBS?


    • Moved by Mike Feng Monday, August 29, 2011 1:15 PM VBS (From:Visual Basic General)
    Saturday, August 27, 2011 12:09 AM

All replies

  • I dunno. This is not a VBS forum.


    Saturday, August 27, 2011 5:20 AM
  • I would post your question to The Official Scripting Guys Forum!.


    Paul ~~~~ Microsoft MVP (Visual Basic)
    Saturday, August 27, 2011 4:01 PM
  • Hey there HHRoblox
    You're on the right path.  Why not try this
    dim wshshell
    Set wshshell = WScript.CreateObject("WScript.Shell") """C:\Program Files\Mozilla Firefox\firefox.exe""",1,False
    Set wshshell = Nothing

    Naturally change the URL
    • Proposed as answer by JuliusPIV Wednesday, September 14, 2011 1:34 PM
    Wednesday, September 14, 2011 1:33 PM