While I try my best to ensure the accuracy of every blogs posted, I cannot guarantee that it will suit your environment or platform. © Copyright 2008-2024 JackNg C. H.. All Rights Reserved.
Automatically open multiple tabs in Firefox browser from DOS command line with URL in incremental sequence numbering (Rev: 1.2)
To easily read online comics, I use the Firefox browser add-on, AutoPager that will automatically loads the next comic page of a site inline when you reach the end of the current comic page for infinite scrolling of the comic content. However, AutoPager did not work on some of the comics sites. Hence, I have created a .bat file,
0_openMultipleTabsInFirefox_fromCommandLine.bat
(1157 bytes. MD5 checksum: 9ebefed48915a157d23dcab3a60420df)
to automatically open multiple tabs in Firefox browser from DOS command line with URL in incremental sequence numbering.
For example, if a comic website, www.abc.com has a comic with title xxx with
page 2 URL as http://www.abc.com/comic/xxx/01/?2,
page 3 URL as http://www.abc.com/comic/xxx/01/?3, and so on until
page 34 URL as http://www.abc.com/comic/xxx/01/?34
By opening a command prompt in Windows XP SP3 x86 Operating System (OS), and enter the below command:
0_openMultipleTabsInFirefox_fromCommandLine.bat http://www.abc.com/comic/xxx/01/?
The Firefox browser will automatically open multiple tabs with URL in incremental sequence numbering from http://www.abc.com/comic/xxx/01/?2 to http://www.abc.com/comic/xxx/01/?34. After finish reading a comic page, I will use Firefox browser keyboard shortcut, [CTRL] w to close that page tab.
----- Start 0_openMultipleTabsInFirefox_fromCommandLine.bat --------------------
@echo off
rem Automatically open multiple tabs in Firefox browser from DOS command line
rem with URL in incremental sequence numbering
rem For reading online comics that has URL page number in incremental sequence numbering
rem Command usage is as shown below:
rem %BATFILE% URL
rem JackNg, Rev: 1.1
SET BATFILE=0_openMultipleTabsInFirefox_fromCommandLine.bat
rem For Windows x86 OS only
SET FFOX="C:\Program Files\Mozilla Firefox\firefox.exe"
rem For Windows x64 OS only
rem SET FFOX="C:\Program Files (x86)\Mozilla Firefox\firefox.exe"
SET STARTPAGE=2
SET STEPAMOUNT=1
SET ENDPAGE=34
IF "%1" == "" GOTO NOURL
rem /L = Logic. Numbers increment start from 2 to 34 with step amount of 1
FOR /L %%i IN (%STARTPAGE%,%STEPAMOUNT%,%ENDPAGE%) DO %FFOX% -new-tab "%1"%%i
GOTO EXIT
:NOURL
echo No URL specified in the command line.
echo Command usage is as shown below:
echo ------------------------------------
echo %BATFILE% URL
echo ------------------------------------
echo Exiting...
echo.
:EXIT
set BATFILE=
set FFOX=
SET STARTPAGE=
SET INCREMENT=
SET ENDPAGE=
----- End 0_openMultipleTabsInFirefox_fromCommandLine.bat --------------------
Reference:
[1] Open multiple tabs in Firefox from a file containing urls
Subscribe to:
Post Comments (Atom)
Please donate. Thanks.
paypal.me/jackngch
(PayPal-to-Paypal account only)
Popular Posts
-
If you spend long hours looking at your pc monitor screen daily, you might want to protect your eyes by changing the background colour o...
-
There are 3 partitions in the Dell Optiplex 9010 pc [Intel Core i7-3770 (3.40 Ghz) CPU, 32 GB DDR3 1600 Mhz memory, 1 TB SATA hardisk dr...
-
Assume running Windows 7 Enterprise x86 Operating System (OS) and had already installed the original RTM version (10.0.26624.0) of Window...
-
Microsoft KB2592687 is the Remote Desktop Protocol 8.0 update for the Windows 7 SP1 Operating System (OS) and Windows Server 2008 R2 S...
-
After login to the Windows 7 Home Premium x64 Operating system (OS) of the Acer Aspire X5900 pc [Intel i5-650, 3.20 GHz, Western Digital ...
-
I had bought the Roman Duo DeliCooker HL-400 ( S$1288.00 including 7% GST & delivery) on March 2014. I had found a Vees Electric Ho...
-
Diagram 1: Capacitor voltage (V C ) and current (I) waveforms In a capacitor, current (I) flows across the capacitor leads the capacitor v...
-
If you are searching for information on a mobile phone number, it will not be freely available in the public domain databases because of ...
-
Situation When I tried to add the " Chinese (PRC) - Chinese (Simplified) - Micosoft Pinyin IME 3.0 " keyboard layout to the Langua...
-
During SolidWorks 2019 SP2 installation, the below error message pop-up: SOLIDWORKS Installation Manager Microsoft SQL Server failed to...
1 comment:
To use Google Chrome browser, I create a file calls "c_openMultipleTabsInChrome_fromCommandLine.bat", with the below changes only:
rem Automatically open multiple tabs in Chrome browser from DOS command line
rem with URL in incremental sequence numbering
SET BATFILE=c_openMultipleTabsInChrome_fromCommandLine.bat
rem For Windows x64 OS only
SET GCHROME="C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
FOR /L %%i IN (%STARTPAGE%,%STEPAMOUNT%,%ENDPAGE%) DO %GCHROME% --newtab "%1"%%i
:EXIT
set GCHROME=
Post a Comment