Download Google Chrome Without a Web Browser using Windows Command Line

February 7, 2013 // Tech Help, Web

Due to the popularity of my old post on how to download firefox without a web browser, I decided to figure out a way to do the same thing with Chrome.  Chrome doesn’t seem easily accessible on FTP, so this method allows you to still download Chrome from a safe web source, via the HTTP link that Google provides.

1.  Open NotePad and paste the below VBScript code into it.

Note: The strFileURL variable is currently set to the URL that Chrome is at as of today.  That might change later.  Find latest Chrome EXE by going here. Click accept and install, then right-click copy the URL titled “Click here to retry.”

' This is the URL of the chrome EXE.
' This is where the file will download to.
strHDLocation = "c:\ChromeStandaloneSetup.exe"
' Fetch the file
Set objXMLHTTP = CreateObject("MSXML2.XMLHTTP") "GET", strFileURL, false
If objXMLHTTP.Status = 200 Then
Set objADOStream = CreateObject("ADODB.Stream")
objADOStream.Type = 1 'adTypeBinary
objADOStream.Write objXMLHTTP.ResponseBody
objADOStream.Position = 0 'Set the stream position to the start
Set objFSO = Createobject("Scripting.FileSystemObject")
If objFSO.Fileexists(strHDLocation) Then objFSO.DeleteFile
Set objFSO = Nothing
objADOStream.SaveToFile strHDLocation
Set objADOStream = Nothing
End if
Set objXMLHTTP = Nothing

2. Save your notepad file to your desktop, and use quotes in the filename to overwrite saving as a .txt file:

3. Go to your Windows command prompt (Start > CMD)
4. Navigate to your desktop in the command prompt (cd desktop)
5. Run the command: cscript.exe downloadfile.vbs

6. Open Windows explorer, and right on your C drive you should see the chrome installer at c:\ChromeStandaloneSetup.exe

Attribution: This vbscript was adopted by Gareth’s method on

About the author

Co-founder, Managing Partner,


  1. so it keeps saying srtHDLocation doesnt match what does that mean !?

  2. This is useful to me … I do data recovery and often have to re-install Windows and prep the machine for the owner. If I fetch Chrome with this I don’t have to start Internet Explorer up at all. When I need the correct URL I look it up with Chrome (on my Macbook Pro, I don’t ever actually use those ol’ Windows these days).

  3. Hey Shaun or Matt.

    Could you help me out? I am smart, but know nothing of programming. I had to type it all up (as I had no way of cutting and pasting w/o internet access) and I proofed it. I am getting an error that sounds like what Shaun was talking about and I did not quite understand how Shaun meant to correct the error. (I tried just deleting line 17 as the previous poster stated but that didn’t work.)


  4. Love the site! With the Google Chrome VBS file I had to delete line 17 and it then worked on my system. I am not sure if it was specific to me, but I am running Windows XP Media Center with all updates. The link for the chrome installer still works too! Keep up the great work!

  5. Shauwn LaLnde May 24, 2013 at 2:10 pm

    I wouldn’t use C: Admin right required for C: many people don’t know this so I’d use a USB Drive.
    Also Type mismatch on line 17. Move it to end of line 16. Other than that it works great.

  6. Yet, you still need a web browser to find out the latest URL for the .exe file to download. :/ nice approach anyway.

  7. It is suitable for me.

  8. Hey thanks for this invaluable info man! ive been looking to download google chrome without a browser for ages, Quality post.Thanks

  9. Hey thanks for this FTP info man, i actually have been looking everywhere how to do this.Keep it up! Thanks.

  10. With this vbs script can i download the latest version of chrome browser?

Leave a Comment