Batch creation help
#1

I've made a batch file like this:
Code:
@ECHO OFF

REM Opens multiple tabs for firefox

SET BROWSER=firefox.exe

SET WAIT_TIME=2

START %BROWSER% -new-tab "http://naurunappula.com/g/1?action=join"
START %BROWSER% -new-tab "http://naurunappula.com/g/2?action=join"
START %BROWSER% -new-tab "http://naurunappula.com/g/3?action=join"
START %BROWSER% -new-tab "http://naurunappula.com/g/4?action=join"
START %BROWSER% -new-tab "http://naurunappula.com/g/5?action=join"
START %BROWSER% -new-tab "http://naurunappula.com/g/6?action=join"
START %BROWSER% -new-tab "http://naurunappula.com/g/7?action=join"
START %BROWSER% -new-tab "http://naurunappula.com/g/8?action=join"
START %BROWSER% -new-tab "http://naurunappula.com/g/9?action=join"
START %BROWSER% -new-tab "http://naurunappula.com/g/10?action=join"
START %BROWSER% -new-tab "http://naurunappula.com/g/11?action=join"
START %BROWSER% -new-tab "http://naurunappula.com/g/12?action=join"
START %BROWSER% -new-tab "http://naurunappula.com/g/13?action=join"
START %BROWSER% -new-tab "http://naurunappula.com/g/14?action=join"
START %BROWSER% -new-tab "http://naurunappula.com/g/15?action=join"
START %BROWSER% -new-tab "http://naurunappula.com/g/16?action=join"
START %BROWSER% -new-tab "http://naurunappula.com/g/17?action=join"
START %BROWSER% -new-tab "http://naurunappula.com/g/18?action=join"
START %BROWSER% -new-tab "http://naurunappula.com/g/19?action=join"
START %BROWSER% -new-tab "http://naurunappula.com/g/20?action=join"
START %BROWSER% -new-tab "http://naurunappula.com/g/21?action=join"
START %BROWSER% -new-tab "http://naurunappula.com/g/22?action=join"
START %BROWSER% -new-tab "http://naurunappula.com/g/23?action=join"
START %BROWSER% -new-tab "http://naurunappula.com/g/24?action=join"
START %BROWSER% -new-tab "http://naurunappula.com/g/25?action=join"
START %BROWSER% -new-tab "http://naurunappula.com/g/26?action=join"
START %BROWSER% -new-tab "http://naurunappula.com/g/27?action=join"
START %BROWSER% -new-tab "http://naurunappula.com/g/28?action=join"
START %BROWSER% -new-tab "http://naurunappula.com/g/29?action=join"
START %BROWSER% -new-tab "http://naurunappula.com/g/30?action=join"
START %BROWSER% -new-tab "http://naurunappula.com/g/31?action=join"
START %BROWSER% -new-tab "http://naurunappula.com/g/32?action=join"
START %BROWSER% -new-tab "http://naurunappula.com/g/33?action=join"
START %BROWSER% -new-tab "http://naurunappula.com/g/34?action=join"
START %BROWSER% -new-tab "http://naurunappula.com/g/35?action=join"
START %BROWSER% -new-tab "http://naurunappula.com/g/36?action=join"
START %BROWSER% -new-tab "http://naurunappula.com/g/37?action=join"
START %BROWSER% -new-tab "http://naurunappula.com/g/38?action=join"
START %BROWSER% -new-tab "http://naurunappula.com/g/39?action=join"
START %BROWSER% -new-tab "http://naurunappula.com/g/40?action=join"
START %BROWSER% -new-tab "http://naurunappula.com/g/41?action=join"
START %BROWSER% -new-tab "http://naurunappula.com/g/42?action=join"
START %BROWSER% -new-tab "http://naurunappula.com/g/43?action=join"
START %BROWSER% -new-tab "http://naurunappula.com/g/44?action=join"
START %BROWSER% -new-tab "http://naurunappula.com/g/45?action=join"
START %BROWSER% -new-tab "http://naurunappula.com/g/46?action=join"
START %BROWSER% -new-tab "http://naurunappula.com/g/47?action=join"
START %BROWSER% -new-tab "http://naurunappula.com/g/48?action=join"
START %BROWSER% -new-tab "http://naurunappula.com/g/49?action=join"
START %BROWSER% -new-tab "http://naurunappula.com/g/50?action=join"
And I need help to close tabs after opening new ones. The numbers in ...com/g/number?action=join count up to 12259, and I would like to have about 10 of them open at the time. How do I close the tabs automaticly with batch or vbs?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)