AwfulArchdemon Posted January 10, 2016 Posted January 10, 2016 It's easy to make a site batch like start sims4studio.com, and save as a .bat, but what about sites that end in something other than .com? I've screwed around a bit trying to get such a thing to work, but I must be doing something wrong, or not doing something right. Sites can end in a great many different kinds of things, like .co, .ep, .tp, and so on. What do I do when cmd doesn't recognize the site extension? Seems like I need to add something else to let it know that it's a website. Would also like to know how to open multiple sites in different tabs via batch, just to know.
bjornk Posted January 10, 2016 Posted January 10, 2016 Have you tried placing the URL inside double quotes and adding a http:// before it? Such as, start "http://somesite.url". I'm not sure if you can launch multiple pages on different tabs by using "start" alone, but you might be able to do that using Chrome/Firefox command line options. Such as... start chrome "URL1" "URL2"... start firefox -new-tab -url URL1 -new-tab -url URL2... http://stackoverflow.com/questions/14348840/opening-chrome-from-command-line https://developer.mozilla.org/en-US/docs/Mozilla/Command_Line_Options Edit: Actually, the Firefox reference says this "Note: When opening multiple URLs, Firefox always opens them as tabs in a new window." so, start firefox URL1 URL2 might be enough.
AwfulArchdemon Posted January 10, 2016 Author Posted January 10, 2016 Crap, I meant new windows not tabs. Using start "website" on 2 lines will open them in new tabs already. And some sites don't use http, so it's not feasible to add http before a site that isn't using it. Actually, now that I tried it, sims4studio.com didn't work either. Lame. There's gotta be something else I need to add to tell batch it's a website, since the lack of http or https throws batch off. Is uppose this means it's not a .com issue, it's a http issue. Does batch have limits there? Never realized it was a prefix issue till now. Edit: Title edited from How to make a website batch that does not end in .com? to: How to make a website batch that does not start with http:// or www.?
bjornk Posted January 10, 2016 Posted January 10, 2016 Try this: explorer "http://site1.com" explorer "http://site2.com" What is in the protocol part of the URL, if it isn't HTTP/HTTPS?
AwfulArchdemon Posted January 10, 2016 Author Posted January 10, 2016 NVM, adding www. or http to the beginning actually does work. Who knew? I kinda figured the site name would need to be more precise, but now start www.sims4studio.com worked for me. Guess you can trick it into finding the page by adding www. or http to the beginning, even if the page doesn't use it. Guess I learned something today. Seems these sites can use http and even https if you want them to. Feelin' like a noob here. Should have at least tried this before I made this thread. Derp! Thanks though, bjornk. This was a silly misunderstanding on my part. Or maybe a lack of experimentation. Batch: You never quite know everything about it.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.