title: VBS to Launch Custom Firefox Window and URL
body: <p>I have been mashing up some script to launch a portable version of Firefox with an URL linked to Webcams.  My objective is to have 2 scripts using the same FF.exe but going to 2 different URLS/IP's.  I am trying to rescrict the browser function by removing scroll bars.menus and status so only the webcam controls and view can be seen.</p>
  
  <p>This is the current code but I seem to have made an error as now the URL is not displaying, only the default on launch.  The sizing is perfect.</p>
  
  <pre><code>dim wshshell
  
  FirefoxProfile = "Profile"
  FirefoxPath = "C:\ADMIN\FF\FF.exe"
  webappurl = "http://Domain.com"
  Height = "870"
  Width = "920"
  
  Set wshshell = WScript.CreateObject("WScript.Shell")
  
  wshshell.run """" &amp; FirefoxPath &amp; """ -P """ &amp; FirefoxProfile &amp; """ -Height """ &amp; Height &amp; """ -Width """ &amp; Width &amp; "" &amp; webappurl
  
  Set wshshell = Nothing
  wscript.quit
  </code></pre>
  
  <p>Any help that you can provide or just a nudge in the right direction would be most appreciated.  This is something else that I have found so maybe this could be used, Unfortunately I don't think that on it's own it's any use.</p>
  
  <pre><code>window.open('Domain.com',null,"height=100px,width=100px,status=0,toolbar=0,menubar=0,location=0");
  </code></pre>
  
  <p>Working code : </p>
  
  <pre><code>dim wshshell
  
  Function qq(str)
  qq = Chr(34) &amp; str &amp; Chr(34)
  End Function
  
  FirefoxProfile = "Profile"
  FirefoxPath = "C:\ADMIN\FF\FF.exe"
  webappurl = "172.22.111.8"
  Height = "700"
  Width = "920"
  Status ="0"
  Toolbar = "0"
  Menubar = "0"
  
  Set wshshell = WScript.CreateObject("WScript.Shell")
  
  wshshell.run qq(FirefoxPath) &amp; " -P " &amp; qq(FirefoxProfile) _
  &amp; " -status " &amp; qq(status) &amp; " -Toolbar " &amp; qq(toolbar) &amp; " -menubar " &amp; qq(menubar) _
  &amp; " -Height " &amp; qq(Height) &amp; " -Width " &amp; qq(Width) _
  &amp; " " &amp; webappurl
  
  Set wshshell = Nothing
  wscript.quit
  </code></pre>