Introduction: Random Instructable (with Batch)

Picture of Random Instructable (with Batch)

Today, I was looking for the old randomiser button... but much to my dissapointment, it seems to have been removed (or I've gone blind) so I set about making my own, and here it is

With this simple batchfile, you can find yourself any random ible on the site (102735 at the time of writing and growing)

and on the off chance you get the same link twice? Well, I've not had it happen, but if you do, then just select a different ible off the page...

Step 1: The Code

Picture of The Code

Without further ado, the code (Full copy and paste version in the next step) Comments in bold italics

@echo off
Not actually needed, just keeps the command prompt cleaner.

Lets use some local variables

set URL = ""
initialize the URL variable,

Get a nice random number

set "URL="
Build the random url

start "" "%URL%"
Launch the URL in your default browser

No more local variables, get rid of them

Step 2: Done

And thats that. I've attached a copy of my .bat file, or the code is below


set URL = abc


set "URL="

start "" "%URL%"



Thanks for reading. Enjoy


DanielG18 (author)2016-02-06

Thank you so much! I've been looking everywhere for this

dan3008 (author)DanielG182016-02-06

you're welcome :) I loved the random button, sad to see it go, which is why I made this :)

Jahwi (author)2016-01-01

Ever wanted to hack with batch?

easymods45 (author)2015-12-23

does it need to be saved as a .BAT?

dan3008 (author)easymods452015-12-23

Yes, well it does if you want to be able to just double click it and run anyway

seamster (author)2015-03-19

Very interesting, thanks!

dan3008 (author)seamster2015-03-19

your welcome. Have fun finding ibles you never new existed :)

About This Instructable




Bio: Life is for living. We all make mistakes it true, and things will go wrong. But Get out there and live life to the full ... More »
More by dan3008:Ball pool baubles Random Instructable (with batch)
Add instructable to: