.bat file for firefox tabs -- dmorris maybe?

Live forum: http://forum.freeipodguide.com/viewtopic.php?t=65644

ILoveToys

30-06-2007 19:38:21

I wrote a simple for loop in java to create a bunch of command line firefox commands to open links in tabs (same link different number at the end).

I want to be able to copy those commands into a .baturl==http://=http:///url file and just run that to open all the links. Here's an example of one line

c\"Program Files"\"Mozilla Firefox"\firefox.exe -new-tab http//linkherewithnumberonendlikethis2473

Now, I'm trying to do 50 at a time, but when I do it I get 100 tabs with every other other tab being my link. The ones in between error out and have this in the address bar

file///C/Documents%20and%20Settings/MYNAME/Desktop/Files%22Mozilla%20Firefox/firefox.exe

Now, that's no where in my batch file. Is there any way to get that out so I just get the 50 tabs I want? Thanks for any help you can give me.

CollidgeGraduit

30-06-2007 19:43:45

[quote3640638249="ILoveToys"]I wrote a simple for loop in java to create a bunch of command line firefox commands to open links in tabs (same link different number at the end).

I want to be able to copy those commands into a .baturl==http://=http:///url file and just run that to open all the links. Here's an example of one line

c\"Program Files"\"Mozilla Firefox"\firefox.exe -new-tab http//linkherewithnumberonendlikethis2473

Now, I'm trying to do 50 at a time, but when I do it I get 100 tabs with every other other tab being my link. The ones in between error out and have this in the address bar

file///C/Documents%20and%20Settings/MYNAME/Desktop/Files%22Mozilla%20Firefox/firefox.exe

Now, that's no where in my batch file. Is there any way to get that out so I just get the 50 tabs I want? Thanks for any help you can give me.[/quote3640638249]

What about doing it this way..

c\
cd\"Program Files"\"Mozilla Firefox"\
firefox.exe -new-tab poop
firefox.exe -new-tab poop2
firefox.exe -new-tab poop3

etc

Works on mine!

ILoveToys

30-06-2007 19:58:56

[quoteb0b703e1dc="CollidgeGraduit"][quoteb0b703e1dc="ILoveToys"]I wrote a simple for loop in java to create a bunch of command line firefox commands to open links in tabs (same link different number at the end).

I want to be able to copy those commands into a .baturl==http://=http:///url file and just run that to open all the links. Here's an example of one line

c\"Program Files"\"Mozilla Firefox"\firefox.exe -new-tab http//linkherewithnumberonendlikethis2473

Now, I'm trying to do 50 at a time, but when I do it I get 100 tabs with every other other tab being my link. The ones in between error out and have this in the address bar

file///C/Documents%20and%20Settings/MYNAME/Desktop/Files%22Mozilla%20Firefox/firefox.exe

Now, that's no where in my batch file. Is there any way to get that out so I just get the 50 tabs I want? Thanks for any help you can give me.[/quoteb0b703e1dc]

What about doing it this way..

c\
cd\"Program Files"\"Mozilla Firefox"\
firefox.exe -new-tab poop
firefox.exe -new-tab poop2
firefox.exe -new-tab poop3

etc

Works on mine![/quoteb0b703e1dc]

I'll try it...Thanks

EDIT Worked like a charm...Thanks

CollidgeGraduit

30-06-2007 20:17:22

[quote68cc35914e="ILoveToys"][quote68cc35914e="CollidgeGraduit"][quote68cc35914e="ILoveToys"]I wrote a simple for loop in java to create a bunch of command line firefox commands to open links in tabs (same link different number at the end).

I want to be able to copy those commands into a .baturl==http://=http:///url file and just run that to open all the links. Here's an example of one line

c\"Program Files"\"Mozilla Firefox"\firefox.exe -new-tab http//linkherewithnumberonendlikethis2473

Now, I'm trying to do 50 at a time, but when I do it I get 100 tabs with every other other tab being my link. The ones in between error out and have this in the address bar

file///C/Documents%20and%20Settings/MYNAME/Desktop/Files%22Mozilla%20Firefox/firefox.exe

Now, that's no where in my batch file. Is there any way to get that out so I just get the 50 tabs I want? Thanks for any help you can give me.[/quote68cc35914e]

What about doing it this way..

c\
cd\"Program Files"\"Mozilla Firefox"\
firefox.exe -new-tab poop
firefox.exe -new-tab poop2
firefox.exe -new-tab poop3

etc

Works on mine![/quote68cc35914e]

I'll try it...Thanks

EDIT Worked like a charm...Thanks[/quote68cc35914e]

No prob.. I've got no idea why your way didn't work, as it's a much cleaner approach than the one I suggested.

dmorris68

30-06-2007 20:24:18

It'll work like that, but it should also work with the complete path each time without changing to the Firefox directory first.

I'm thinking your original problem stemmed from how you quoted the individual folders on the command line. Normally when you have spaces you quote the entire command-line including the filename, but not including the parameters. Like so

"C\Program Files\Mozilla Firefox\firefox.exe" -new-tab mylink

Note that's only one set of quotes around the entire file path and name. I tried that on my system from a batch file loading 5 links, and it worked fine, but I don't installing anything to "Program Files" so it wasn't an exact comparison.

If by some chance that isn't the problem, then I'd say it was a bug in how Firefox processes spaces in file paths. Which isn't uncommon in some poorly written apps, but I'd be surprised to hear it Firefox had a problem with it.