Jump to content

.bat question

Lingrah
Go to solution Solved by gibbsy81,

So does a .bat file just type whatever it's contents are into CMD?

Yes that is correct.

 

If so, what should I type into it to make it launch a specific webpage on google chrome (ie LTT)

start http://linustechtips.com/

That will open the site using the default browser set in windows.

So does a .bat file just type whatever it's contents are into CMD?

 

If so, what should I type into it to make it launch a specific webpage on google chrome (ie LTT)

Spoiler
Spoiler

Obligatory PC specs

CPU: Intel Core i5-6600K 3.5GHz
CPU Cooler: Corsair H50
Motherboard: Asus Z170-E ATX LGA1151
Memory: G.Skill Ripjaws 4 Series 16GB (2 x 8GB)
Storage: ADATA Premier SP550 240GB
Storage: Western Digital Blue 500GB
Storage: Western Digital BLACK SERIES 1TB
Video Card: Gigabyte GeForce GTX 1060 6GB 6GB G1
Case: Fractal Design Define S
Power Supply: Corsair CSM 550W

Spoiler
If you are new please read the CoC!

 Please FOLLOW YOUR OWN THREADS!


 Quote people when replying to them.


PLEASE SELECT 'AUTOMATIC' FOR FONT COLOR FOR DARK THEME USERS.


 Mark your problem as solved if answered and like all helpful information.


 DO NOT QUOTE IMAGES(!) just type -pic- or tag them as spoiler.


Don't criticize people for asking "stupid question".


There is actually a hidden search feature on the forums here: Search 


IT DOESN'T MATTER IF YOU'RE A FANBOY/FANGIRL. WHAT MATTERS IS THAT YOU DON'T LET THAT EFFECT YOUR HARDWARE RECOMMENDATIONS.


DO NOT POST SPAM!

Link to comment
Share on other sites

Link to post
Share on other sites

So does a .bat file just type whatever it's contents are into CMD?

Yes that is correct.

 

If so, what should I type into it to make it launch a specific webpage on google chrome (ie LTT)

start http://linustechtips.com/

That will open the site using the default browser set in windows.

Link to comment
Share on other sites

Link to post
Share on other sites

So does a .bat file just type whatever it's contents are into CMD?

 

If so, what should I type into it to make it launch a specific webpage on google chrome (ie LTT)

 

A Batch (bat) file is executed by being passed to a command line interpreter, basically the middle man from .bat instructions to CMDlets.

 

To execute a webpage, just use the "start http://url.com",if you want it to use a browser that isn't the default I think the syntax is as listed below:

start http://www.google.com "C:\Pathtochrome.exe"

Scrapyard Build Total Cost: $268AUD


C2Q E8200 | 4 x 1gb DDR2 | GA-EP45-DS3 r1 | Gammax 200 | 320gb 2.5" | 7870LE PCS | Litepower 500w | CISCO Aironet 350

Link to comment
Share on other sites

Link to post
Share on other sites

A Batch (bat) file is executed by being passed to a command line interpreter, basically the middle man from .bat instructions to CMDlets.

 

To execute a webpage, just use the "start http://url.com",if you want it to use a browser that isn't the default I think the syntax is as listed below:

start http://www.google.com "C:\Pathtochrome.exe"

 

 

Yes that is correct.

 

start http://linustechtips.com/

That will open the site using the default browser set in windows.

My first .bat I made :'D

https://mega.co.nz/#!0UkEBSDA!9gUHtSbKNvZYToxcHiyPhH7gIrBclDeRLFrh8bloOZA

start http://i.imgur.com/SxjHz9K.png
Spoiler
Spoiler

Obligatory PC specs

CPU: Intel Core i5-6600K 3.5GHz
CPU Cooler: Corsair H50
Motherboard: Asus Z170-E ATX LGA1151
Memory: G.Skill Ripjaws 4 Series 16GB (2 x 8GB)
Storage: ADATA Premier SP550 240GB
Storage: Western Digital Blue 500GB
Storage: Western Digital BLACK SERIES 1TB
Video Card: Gigabyte GeForce GTX 1060 6GB 6GB G1
Case: Fractal Design Define S
Power Supply: Corsair CSM 550W

Spoiler
If you are new please read the CoC!

 Please FOLLOW YOUR OWN THREADS!


 Quote people when replying to them.


PLEASE SELECT 'AUTOMATIC' FOR FONT COLOR FOR DARK THEME USERS.


 Mark your problem as solved if answered and like all helpful information.


 DO NOT QUOTE IMAGES(!) just type -pic- or tag them as spoiler.


Don't criticize people for asking "stupid question".


There is actually a hidden search feature on the forums here: Search 


IT DOESN'T MATTER IF YOU'RE A FANBOY/FANGIRL. WHAT MATTERS IS THAT YOU DON'T LET THAT EFFECT YOUR HARDWARE RECOMMENDATIONS.


DO NOT POST SPAM!

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×