Create a Batch File to Open All Voting Links in Chrome

Discussion in 'Basic Tutorials' started by KhronesGehrig, Jun 6, 2024.

  1. KhronesGehrig

    KhronesGehrig ArchMelon von Redstone
    SuperMod EcoLegend ⛰️⛰️⛰️⛰️ Ex-EcoLeader ⚜️⚜️⚜️ Prestige ⭐ IV ⭐ Premium Upgrade

    Joined:
    Jul 24, 2012
    Messages:
    488
    Trophy Points:
    65,760
    Gender:
    Male
    Ratings:
    +175
    Hey everyone,

    If looking to semi-automate the voting process to support your favorite server, this tutorial is for you. I’ll show you how to create a batch file that opens all the voting links in Chrome with just one double-click. This will save you time and ensure you don’t miss a vote.

    What You’ll Need
    • A Windows PC
    • Google Chrome installed
    • Basic understanding of how to use Notepad
    Step-by-Step Guide

    1. Open Notepad
    First, open Notepad. You can do this by typing notepad into the Start menu search and pressing Enter.

    2. Write Your Commands
    In Notepad, Copy and Paste the following commands to open each voting link in Google Chrome:



    • @Echo off: This command prevents the commands from being displayed as they are executed.
    • echo Opening voting links in Chrome...: This displays a message indicating that the process has started.
    • start chrome "URL": This command opens a new instance of Google Chrome with the specified URL.
    • echo Done! All links have been opened in Chrome.: This displays a message indicating that all links have been opened.
    • pause: This pauses the execution of the batch file and waits for the user to press a key before closing the command window.

    3. Save the File
    Save the file with a .bat extension. In Notepad, go to File > Save As. In the “Save as type” dropdown, select “All Files”. Name your file ECC Vote.bat and save it to a location you can easily find, like your Desktop.

    4. Run the Batch File
    Navigate to where you saved your batch file. Double-click it to run. You should see a command window open, displaying your messages and opening each voting link in Google Chrome.

    Tips and Tricks
    • Default Browser: If Chrome is not your default browser, you can specify the full path to the Chrome executable. For example, start "" "C:\Program Files\Google\Chrome\Application\chrome.exe" "URL".
    And that's it! Now you can easily vote for EcoCityCraft on multiple sites with just one click. Happy voting!

    If you have any questions or run into issues, feel free to ask here.

    Kill and Conquer,

    KhronesGehrig
     
    #1 KhronesGehrig, Jun 6, 2024
    Last edited: Jul 1, 2024
  2. blazwura97

    Mythic ⚔️ I ⚔️ President ⛰️⛰️ Ex-EcoLegend ⚜️⚜️⚜️⚜️ Prestige ⭐⭐ X ⭐⭐

    Joined:
    Sep 5, 2019
    Messages:
    1,149
    Trophy Points:
    39,410
    Gender:
    Female
    EcoDollars:
    $0
    Ratings:
    +691
    Could just bookmark them all in a browser folder, right click on it and "open all"
     
    • Informative Informative x 1
    • List
  3. KhronesGehrig

    KhronesGehrig ArchMelon von Redstone
    SuperMod EcoLegend ⛰️⛰️⛰️⛰️ Ex-EcoLeader ⚜️⚜️⚜️ Prestige ⭐ IV ⭐ Premium Upgrade

    Joined:
    Jul 24, 2012
    Messages:
    488
    Trophy Points:
    65,760
    Gender:
    Male
    Ratings:
    +175
    Of course I can think of quite a few ways to open the links. This is just an option and one I prefer. I find it faster.

    Plus, I created a shortcut so I could change the icon to an ECC icon and put it right next to my minecraft launcher. It helps me to remember to vote when I log in :). I was considering using windows task scheduler to just run the batch at the same time everyday. But sometimes I don't get on ECC at the same time.
     
  4. Wazupbutrcup

    Wazupbutrcup French Toast over Waffles
    EcoLeader ⛰️⛰️⛰️ Ex-Tycoon ⚜️⚜️⚜️ Prestige ⭐ II ⭐ Premium Upgrade

    Joined:
    Mar 8, 2014
    Messages:
    222
    Trophy Points:
    56,620
    Gender:
    Male
    Ratings:
    +32
    Created for those who don't use chrome as the default browser

    To modify the batch script to open links using the default browser instead of specifically Chrome, you can use the start command without specifying the browser. Here is the updated script:

    Code:
    @Echo off
    echo Opening voting links in the default browser...
    
    start "" "https://minecraft.menu/server-ecocitycraft-economy.2577/vote"
    start "" "https://minecraftbestservers.com/server-ecocitycraft-economy.1629/vote"
    start "" "https://www.curseforge.com/servers/server/ecocitycraft-economy/vote"
    start "" "https://minecraft.buzz/vote/7298"
    start "" "https://best-minecraft-servers.co/server-ecocitycraft-economy.1309/vote"
    start "" "https://servers-minecraft.net/server-ecocitycraft-economy.24122/vote"
    start "" "https://minecraftlist.org/vote/11929"
    start "" "https://minecraft-server.net/vote/EcoCityCraft/"
    start "" "https://topminecraftservers.org/vote/3276"
    start "" "https://topg.org/minecraft-servers/server-380058"
    start "" "https://minecraft-mp.com/server/7096/vote/"
    start "" "https://minecraft-server-list.com/server/7038/vote/"
    start "" "https://minecraftservers.org/vote/6021"
    
    echo Done! All links have been opened in the default browser.
    pause
    
     
  5. KhronesGehrig

    KhronesGehrig ArchMelon von Redstone
    SuperMod EcoLegend ⛰️⛰️⛰️⛰️ Ex-EcoLeader ⚜️⚜️⚜️ Prestige ⭐ IV ⭐ Premium Upgrade

    Joined:
    Jul 24, 2012
    Messages:
    488
    Trophy Points:
    65,760
    Gender:
    Male
    Ratings:
    +175

    Added to top post. Thanks waz.