writing a batch file that opens a chrome URL

前端 未结 4 940
长情又很酷
长情又很酷 2020-12-28 12:07

looking for some help writing a batch file to use as a joke on my friend. essentially i want it to open a certain URL in chrome. then i was going to disguise it as something

相关标签:
4条回答
  • 2020-12-28 12:30
    @ECHO OFF
    "c:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --app="https://tweetdeck.twitter.com/"
    
    @ECHO OFF
    "c:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --app="https://web.whatsapp.com/"
    
    0 讨论(0)
  • 2020-12-28 12:34

    It's very simple. Just try:

    start chrome https://www.google.co.in/
    

    it will open the Google page in the Chrome browser.

    If you wish to open the page in Firefox, try:

    start firefox https://www.google.co.in/
    

    Have Fun!

    0 讨论(0)
  • 2020-12-28 12:35

    assuming chrome is his default browser: start http://url.site.you.com/path/to/joke should open that url in his browser.

    0 讨论(0)
  • 2020-12-28 12:35
    start "Chrome" "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --profile-directory="Profile 2"
    
    start "webpage name" "http://someurl.com/"
    
    start "Chrome" "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --profile-directory="Profile 3"
    
    start "webpage name" "http://someurl.com/"
    
    0 讨论(0)
提交回复
热议问题