New Posts  All Forums:Forum Nav:

Simple Batch Script - Page 2

post #11 of 17
hello guys , ive found this script very helpful and works great except with internet explorer
Code:
cls
@ECHO OFF
REM Opens multiple tabs in specified browser
SET BROWSER=iexplore.exe
SET WAIT_TIME=2
REM @ping 127.0.0.1 -n %WAIT_TIME% -w 1000 > nul
START %BROWSER% "URL1"
START %BROWSER% "URL2"
START %BROWSER% "URL3"
START %BROWSER% "URL4"
START %BROWSER% "URL5"

instead of opening in new tabs, they open in new windows.
anyone have any idea of why ?
post #12 of 17
Quote:
Originally Posted by digikwondo View Post

hello guys , ive found this script very helpful and works great except with internet explorer
Code:
cls
@ECHO OFF
REM Opens multiple tabs in specified browser
SET BROWSER=iexplore.exe
SET WAIT_TIME=2
REM @ping 127.0.0.1 -n %WAIT_TIME% -w 1000 > nul
START %BROWSER% "URL1"
START %BROWSER% "URL2"
START %BROWSER% "URL3"
START %BROWSER% "URL4"
START %BROWSER% "URL5"

instead of opening in new tabs, they open in new windows.
anyone have any idea of why ?

You're starting a new IE instance for each URL. The code reads exactly as the resulting behaviour; start iexplore.exe "url" so I'm not really sure why you expected any other behaviour. (that said, it might be worth checking the tab setting within IE to see if there's a way for new instances started outside of IE's runtime will "talk" to existing instances of IE to push open a new tab instead).

The code as a whole is pretty odd though, you're cls'ing before turning echo off, yet also got a ping @-prefixed latter on in the code (albeit commented out) and that ping is pointing to the loopback address (127.0.0.1). None of that is wrong as such, it's just odd.
post #13 of 17
for IE
start %BROWSER% -new-tab "URL1"
Core I7
(13 items)
 
  
CPUMotherboardGraphicsRAM
I7 920 rev. D0 @ 4.26Ghz EVGA X58 SLI EVGA GTX 285 OCZ XMP 3x2Gb (pc3 12800) 
Hard DriveOptical DriveOSMonitor
Western Digital Caviar Black 640Gb x 2 LG GH22LS30 openSuse 12.1 x64 HP F2105 
PowerCase
CORSAIR 850TX Cooler Master ATCS 840 
  hide details  
Reply
Core I7
(13 items)
 
  
CPUMotherboardGraphicsRAM
I7 920 rev. D0 @ 4.26Ghz EVGA X58 SLI EVGA GTX 285 OCZ XMP 3x2Gb (pc3 12800) 
Hard DriveOptical DriveOSMonitor
Western Digital Caviar Black 640Gb x 2 LG GH22LS30 openSuse 12.1 x64 HP F2105 
PowerCase
CORSAIR 850TX Cooler Master ATCS 840 
  hide details  
Reply
post #14 of 17
Quote:
Originally Posted by tom.slick View Post

for IE
start %BROWSER% -new-tab "URL1"
Never thought I'd ever hear my self congratulate the IE developers, but that's actually a rather neat flag.
post #15 of 17
Heh? Can't you just open IE and make a Favorite Folder and just click the folder with the mouse wheel and everything opens at once?
Atleast I do it that way with websites that I check frequently.
Edited by Nestala - 8/29/13 at 12:58am
Petrichor
(24 items)
 
Harbringer
(12 items)
 
Jaded
(5 items)
 
CPUMotherboardGraphicsRAM
Intel i5-3570K @ 4.7GHz / 1.256V ASRock Z77 Extreme4 Gainward GTX 1060, 6GB TeamGroup 8GB, DDR3-1333 @ 1600MHz / 1.5V, 9-9-... 
Hard DriveHard DriveHard DriveOptical Drive
Samsung SSD 830 Series, 128GB Seagate Barracuda ST31000524AS, 1TB, 7200 RPM Hitachi Deskstar IDK 0S03661, 3TB, 7200 RPM LG GH22NS50 
CoolingCoolingCoolingOS
Lamptron FC5 V3 Noctua NH-D15 Noctua NF-A14 FLX (140mm) (x5)  Windows 10 Professional (64-bit) 
MonitorMonitorKeyboardPower
Dell UltraSharp U2312HM (x3) LG 40UB800V Lioncast LK20, TKL, Cherry MX-Blue, DE-Layout Corsair AX860 
CaseMouseMouse PadAudio
Fractal Define R4 Black Mionix Castor Akasa Venom XXL Denon PMA 520 AE AMP 
AudioAudioAudioAudio
Dali Zensor 3 Speakers (x2) Magnat Monitor Supreme Sub 301 A Audioengine D1 DAC / Headphone AMP Beyerdynamic DT 770 Pro 250 Ω 
CPUMotherboardRAMHard Drive
Intel Pentium G3440T ASRock E3C226D2I Kingston ValueRAM, 16GB, DDR3-1333 MHz, ECC HGST IDK Deskstar H3IK40003272SE, 4 TB, 7200RPM 
Hard DriveOSPowerCase
Seagate ST4000DM000, 4 TB, 5900RPM (x3) FreeNAS 9.10 be quiet! Straight Power E9 400W NZXT Source 210 Elite 
CPUGraphicsRAMHard Drive
Intel Core i3-2367M Intel HD Graphics 3000 4 GB 500 GB 
Monitor
11.6" WXGA non-glare LED TFT, 1366x768 
  hide details  
Reply
Petrichor
(24 items)
 
Harbringer
(12 items)
 
Jaded
(5 items)
 
CPUMotherboardGraphicsRAM
Intel i5-3570K @ 4.7GHz / 1.256V ASRock Z77 Extreme4 Gainward GTX 1060, 6GB TeamGroup 8GB, DDR3-1333 @ 1600MHz / 1.5V, 9-9-... 
Hard DriveHard DriveHard DriveOptical Drive
Samsung SSD 830 Series, 128GB Seagate Barracuda ST31000524AS, 1TB, 7200 RPM Hitachi Deskstar IDK 0S03661, 3TB, 7200 RPM LG GH22NS50 
CoolingCoolingCoolingOS
Lamptron FC5 V3 Noctua NH-D15 Noctua NF-A14 FLX (140mm) (x5)  Windows 10 Professional (64-bit) 
MonitorMonitorKeyboardPower
Dell UltraSharp U2312HM (x3) LG 40UB800V Lioncast LK20, TKL, Cherry MX-Blue, DE-Layout Corsair AX860 
CaseMouseMouse PadAudio
Fractal Define R4 Black Mionix Castor Akasa Venom XXL Denon PMA 520 AE AMP 
AudioAudioAudioAudio
Dali Zensor 3 Speakers (x2) Magnat Monitor Supreme Sub 301 A Audioengine D1 DAC / Headphone AMP Beyerdynamic DT 770 Pro 250 Ω 
CPUMotherboardRAMHard Drive
Intel Pentium G3440T ASRock E3C226D2I Kingston ValueRAM, 16GB, DDR3-1333 MHz, ECC HGST IDK Deskstar H3IK40003272SE, 4 TB, 7200RPM 
Hard DriveOSPowerCase
Seagate ST4000DM000, 4 TB, 5900RPM (x3) FreeNAS 9.10 be quiet! Straight Power E9 400W NZXT Source 210 Elite 
CPUGraphicsRAMHard Drive
Intel Core i3-2367M Intel HD Graphics 3000 4 GB 500 GB 
Monitor
11.6" WXGA non-glare LED TFT, 1366x768 
  hide details  
Reply
post #16 of 17
you may be able to do a cmd where you telnet to the site and run a get command and pipe that into a file...

but this is a 5 year old post and the original guy hasn't been to the site in 1.5 years.
Zev's Comp
(15 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i5-2500K Sandy Bridge 3.3GHz GIGABYTE GA-Z68X-UD3H-B3 LGA 1155 Intel Z68 HDM... GeForce GTX 750 Ti G.SKILL Ripjaws X Series 8GB 
Hard DriveHard DriveHard DrivePower
1TB HDD 64GB SSD (Used for SRT) 500 GB. Antec BP550 Plus 550W Continuous Power ATX12V V... 
Case
COOLER MASTER ELITE 335 RC-335-KKN1-GP Black S... 
  hide details  
Reply
Zev's Comp
(15 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i5-2500K Sandy Bridge 3.3GHz GIGABYTE GA-Z68X-UD3H-B3 LGA 1155 Intel Z68 HDM... GeForce GTX 750 Ti G.SKILL Ripjaws X Series 8GB 
Hard DriveHard DriveHard DrivePower
1TB HDD 64GB SSD (Used for SRT) 500 GB. Antec BP550 Plus 550W Continuous Power ATX12V V... 
Case
COOLER MASTER ELITE 335 RC-335-KKN1-GP Black S... 
  hide details  
Reply
post #17 of 17
Quote:
Originally Posted by Mrzev View Post

you may be able to do a cmd where you telnet to the site and run a get command and pipe that into a file...

but this is a 5 year old post and the original guy hasn't been to the site in 1.5 years.
If you read the thread, it's been bumped because someone else is making use of the same script wink.gif
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Coding and Programming