also @ TechSpot: Weekend Open Forum: Have you upgraded to Windows 7 yet?
Welcome to the TechSpot OpenBoards. Please read the FAQ if you have any questions. Login to participate.

Go Back   TechSpot OpenBoards > Operating Systems & Software > Software & Utilities in General

How do I create a Randomly Picking Batch File?

Closed Thread
Bookmark Thread Tools
  #1  
Old 06-29-2007
TechSpot Member
 
Location: Missouri, USA
Member since: May 2007, 72 posts
How do I create a Randomly Picking Batch File?

Does anyone know how I would write a batch file to pick at random one name from a list?

We want to be able to randomly choose a place to eat every Friday at work!

I have found some batch files written that are supposed to do this, but I cannot get them to work.

Thanks!

Last edited by chance1138; 06-29-2007 at 01:59 PM..
  #2  
Old 06-29-2007
Nodsu's Avatar
TechSpot Evangelist
 
Location: Estonia
Member since: Feb 2002, 9,430 posts
System specs
Why do it with a batch file? That's just masochistic.
Use Excel instead.. Any scientific calculator will do too. Even dice would be easier.
To remove this ad, sign in. To register for a new account, click here.
  
  #3  
Old 06-29-2007
TechSpot Member
 
Location: Missouri, USA
Member since: May 2007, 72 posts
You can use Excel to choose a random option from another file? I guess I'm not sure how that would work.

I suppose I could get dice to work...
  #4  
Old 06-30-2007
Nodsu's Avatar
TechSpot Evangelist
 
Location: Estonia
Member since: Feb 2002, 9,430 posts
System specs
Why would you choose from another fle? Copy the place list to a preadsheet and work on that.

Maybe we need some more info on how your system works and would work in the future..
  #5  
Old 07-02-2007
TechSpot Member
 
Location: Missouri, USA
Member since: May 2007, 72 posts
I had a friend who had previously designed an Excel file to do the same thing make me one. Thanks for the suggestions.

The file has a list of restaurants, and a rating given by 3 people. This rating is made into a weighted average, and that average is applied to how often each restaurant is chosen. Basically, the more-liked restaurants are picked more often, for obvious reasons. So it isn't exactly random, but it still takes out the pain of decision-making! IMO it is a pretty in-depth program to have designed for something so simple, but this guy is also a friggin' genius.

Last edited by chance1138; 07-02-2007 at 11:06 AM..
Closed Thread

Tip: Download Advanced SystemCare 3 Freeware - 1 Click A Day to Clean, Repair, Protect & Optimize your PC.

Thread Tools


Similar Topics
Topic Category Replies Last Post
Batch File Help Windows OS 8 02-23-2007 03:09 AM
How can i replace a in-use file with CMD or batch..?? Windows OS 3 02-20-2007 03:15 PM
batch file help Windows OS 0 08-30-2006 09:11 PM
batch file Software & Utilities in General 10 04-06-2006 07:55 PM
help me create a batch file in XP The Meeting Spot - Chat & Socialize 2 07-07-2004 05:13 PM


All times are GMT -4. The time now is 09:39 AM.