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


USING BUTTERNUT.AI TO CREATE PROFESSIONAL WEBSITES

Having a professional and efficient website is crucial for any business looking to thrive online. With the constant advancements in technology, it can be overwhelming to keep up with the latest tools and platforms available for website creation. However, by leveraging the innovative capabilities of Butternut.ai, businesses can maximize their efficiency and create stunning websites […]

read more
EASY AND SIMPLE AI VIDEO EDITING SOFTWARE

EASY AND SIMPLE AI VIDEO EDITING SOFTWARE

Imagine your favourite movie scene transformed into a video in minutes, not hours. Thanks to advancements in technology, editing software has become increasingly user-friendly. Wondershare’s Filmora 14 stands as a prime example, boasting an array of AI features that simplify the editing process, with AI voice capabilities that could turn your voiceover dreams into a […]

read more

Like our Page