How To Create a Firefox Offline Mode Batch File

August 5, 2018   /   by Marco  / Categories :  Business, Software, Technology, TIP AND TRICKS, website

For those of you who don’t know, Firefox has an OFFLINE mode where you can use this to display cached content if the website is down. I’ve managed to create a little batch file that checks whether the website is down and then it loads the OFFLINE website (note you must have previously visited the website). Here’s the batch file:

@ECHO OFF
ping -n 1 businesslegions.com | find "TTL" >nul: 2>nul:
if not errorlevel 1 goto :firefox
Echo LOADING WEBSITE IN OFFLINE MODE... PLEASE WAIT ...
"C:\Program Files\Mozilla Firefox\firefox.exe" -offline http://businesslegions.com
exit
:firefox
Echo LOADING WEBSITE ONLINE MODE... PLEASE WAIT ...
"C:\Program Files\Mozilla Firefox\firefox.exe" http://businesslegions.com
exit

You can download the above sample batch file here:

The other option would be to manually select OFFLINE in the Web developer but I prefer to launch this batch file when the computer starts to load a particular website.

DO YOU LIKE WHAT YOU'VE READ?
Join our subscription list and receive our content right in your mailbox. If you like to receive some Great deals our Freebies then subscribe now!

Our Sponsors

  • Follow us:

OTHER ARTICLES YOU MAY LIKE


STOP NOISY CALLS: THE ANDROID SETTING YOU SHOULD SWITCH ON TODAY

STOP NOISY CALLS: THE ANDROID SETTING YOU SHOULD SWITCH ON TODAY

Phone calls still matter. Whether you’re speaking to a client, checking in with family, or handling something urgent on the move, clarity can make or break the conversation. If you’ve ever found yourself apologising for the construction noise behind you, the wind across your microphone, or the café chatter muddling your words, there’s an Android […]

read more
FILMORA 15 – WHAT’S NEW? AI EXTEND, DYNAMIC CAPTIONS, TRUE TIMELINE EDITING + INSTALL GUIDE

FILMORA 15 – WHAT’S NEW? AI EXTEND, DYNAMIC CAPTIONS, TRUE TIMELINE EDITING + INSTALL GUIDE

There is a particular thrill to installing a major new release of your everyday editor, especially when your workflow is comfortable and productive in the current version. That feeling is right at the heart of the move from Filmora 14 to Filmora 15. This upgrade promises fresh creative features, faster handling of complex projects, and […]

read more

Like our Page