SP3 OS On Dell

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Friday, May 3, 2013

Automatically open multiple tabs in Firefox browser from DOS command line with URL in incremental sequence numbering (Rev: 1.1)

Posted on 12:42 AM by Unknown


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
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • Solved changing SATA operation mode in BIOS from IDE to AHCI without reinstalling Windows XP x64 OS for ASUS P8H77-M motherboard (Rev: 1.0)
    Before the Windows XP x64 Operating System (OS) installation process on Asus P8H77-M motherboard computer that has Intel H77 Express Chipse...
  • Solved Windows Defender "ERROR: Signature Update failed with hr=800106BA" & "Windows Update cannot currently check for updates because the service is not running" errors in Acer Aspire X5900 pc with Windows 7 Home Premium x64 OS (Rev: 1.0)
    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 1 T...
  • Solved People Express Management Flight Simulator software 16 bit Windows Subsystem error when login as a local user account in Windows XP Professional SP3 x86 OS (Rev: 1.1)
    After installed the People Express Management Flight Simulator (PEMFS) v1.02 on a Windows XP Professional SP3 x86 OS using an administrator ...
  • Photos/Contact Me (Rev: 1.74)
    A brief introduction of myself: Jack Ng Singaporean Diploma in Electrical Engineering Professional Diploma in Management Degree of Bachelor ...
  • Solved syntax error when printing a pdf file to HP Laserjet 8150 printer (Rev: 1.1)
    When printing a pdf file entitled "On the concept of 'tractor beams'" (by S. Sukhov and A. Dogariu*)  to HP Laserjet 8150 ...
  • Remote Desktop Connection (Rev: 1.89)
    Remote Desktop Connection (RDC) is a technology that allows you to sit at a computer/notebook and connect to a remote computer/server in a d...
  • "Fan error" in IBM T42 notebook (Rev: 1.2)
    JackNg updates on 7 January 2010: I have changed to a known good fan from another IBM T42 notebook. The " fan error " is solved as...
  • Solved Chinese (PRC) keyboard layout error (Rev: 1.2)
    Situation When I tried to add the " Chinese (PRC) - Chinese (Simplified) - Micosoft Pinyin IME 3.0 " keyboard layout to the Langua...
  • Set a light green desktop background colour to protect your eyes through long hours of looking at the pc monitor (Rev: 1.0)
    If you spend long hours looking at your pc monitor screen daily, you might want to protect your eyes by changing the background colour of yo...
  • Solved Windows 7 x64 OS hibernation failed problem due to VgaSave on Dell Precision T7600 workstation (Rev: 1.3)
    The Dell Precision T7600 workstation [2 x Intel Xeon E5-2687W (8 cores) 3.1 Ghz CPU, 256 GB RAM] has a Nvidia Quadro 5000 video card [ defa...

Blog Archive

  • ▼  2013 (8)
    • ▼  May (2)
      • Solved Windows Defender "ERROR: Signature Update f...
      • Automatically open multiple tabs in Firefox browse...
    • ►  April (3)
    • ►  March (2)
    • ►  February (1)
  • ►  2012 (26)
    • ►  December (5)
    • ►  October (1)
    • ►  September (3)
    • ►  August (2)
    • ►  July (6)
    • ►  June (2)
    • ►  March (4)
    • ►  February (1)
    • ►  January (2)
  • ►  2011 (13)
    • ►  November (1)
    • ►  October (5)
    • ►  September (1)
    • ►  June (2)
    • ►  May (2)
    • ►  March (1)
    • ►  January (1)
  • ►  2010 (14)
    • ►  December (1)
    • ►  November (2)
    • ►  October (1)
    • ►  June (3)
    • ►  May (3)
    • ►  April (1)
    • ►  March (1)
    • ►  February (1)
    • ►  January (1)
  • ►  2009 (16)
    • ►  December (1)
    • ►  October (1)
    • ►  September (1)
    • ►  August (3)
    • ►  July (1)
    • ►  June (1)
    • ►  May (2)
    • ►  February (5)
    • ►  January (1)
  • ►  2008 (44)
    • ►  December (4)
    • ►  November (7)
    • ►  September (2)
    • ►  August (7)
    • ►  July (3)
    • ►  June (3)
    • ►  May (2)
    • ►  April (1)
    • ►  March (9)
    • ►  February (6)
Powered by Blogger.

About Me

Unknown
View my complete profile