lesser-equity

Magazine
Go Back   Computer Juice > Computer Software > General Software Chat

Register


 Default 

Program that selects one file from a folder at random?




Reply
 
Thread Tools
  #1  
Old 14th Nov 2007, 17:34
Member Group
 
Default Program that selects one file from a folder at random?

Hello,

I'm looking for a pretty odd program that I don't know how to successfully Google for. I'd like one that randomly selects one file from a folder. Completely randomly. I don't have experience with scripts or macros or whatever this would require, but if anyone can tell me how to create something like that, it would be useful as well. Or any other good idea for how to accomplish the same basic point, as long as it selects one from the folder, so I don't have to type up every file in a program. I'd like it to just select one from the folder itself, especially as the files get in the hundreds.

Thank you
  #2  
Old 15th Nov 2007, 14:12
New Member Group
 
Default Program that selects one file from a folder at random?

I've never heard of this program before, but I could try making one for you. I would say either a script in a language like AutoIt or a small console application created in C++.

Light
  #3  
Old 15th Nov 2007, 17:03
Member Group
 
Default Program that selects one file from a folder at random?

Quote:
Originally Posted by LightWarrior View Post
I've never heard of this program before, but I could try making one for you. I would say either a script in a language like AutoIt or a small console application created in C++.

Light
I have no experience in these things, but if you'd be kind enough to try to program it for me, I'd appreciate it a lot. :) I'm subscribed to this thread.
  #4  
Old 17th Nov 2007, 19:34
Donor Group
 
Default Program that selects one file from a folder at random?

I'm afraid I've never heard of such program.
What do you mean by selecting a file? What kind of file is this you're talking about?
  #5  
Old 25th Nov 2007, 07:23
Member Group
 
Default Program that selects one file from a folder at random?

Quote:
Originally Posted by sophus View Post
I'm afraid I've never heard of such program.
What do you mean by selecting a file? What kind of file is this you're talking about?
oops, sorry i didn't check this thread in so long!! i never got an e-mail saying someone answered! D:
well, it's kind of tough to explain, but i'm an artist, and i often draw free art for people for fun, on a certain forum web site, and i have 150 requests so far, so it would be nice if i had a program that could select from the images at random, to decide who i draw, to keeps things fair. i could add them to a program that selects from a list at random, but it doesn't select from files in a folder at random, so i would have to input every name myself, which would be time-consuming in the long run=)
  #6  
Old 25th Nov 2007, 16:54
Donor Group
 
Default Program that selects one file from a folder at random?

well andrew, you could do a very simple thing.
you know how many files are there on your folder, right? then all you gotta do is randomly select a number from 1 to your folder's file number. Try this http://www.random.org/integers/ .
Then, when you get your number, go to your folder, count the rows (for ex, say you get 5 files in a row inside your folder), count the files and then there you are, you have your file.
  #7  
Old 25th Nov 2007, 17:16
Member Group
 
Default Program that selects one file from a folder at random?

Quote:
Originally Posted by sophus View Post
well andrew, you could do a very simple thing.
you know how many files are there on your folder, right? then all you gotta do is randomly select a number from 1 to your folder's file number. Try this http://www.random.org/integers/ .
Then, when you get your number, go to your folder, count the rows (for ex, say you get 5 files in a row inside your folder), count the files and then there you are, you have your file.
allright, thanks, maybe i'll try that then=)
thank you
Reply

Register

Bookmarks

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error Deleting File or Folder winglow123 General Software Chat 2 22nd Oct 2009 18:01
I've Deleted Both the OE Spam Folder and the Deleted Items Folder! sue Email, VoIP & IM Discussion 1 30th Aug 2009 08:41
Pick random names from .csv file atorres0506 Office Suites & Applications 2 21st Jan 2009 15:13
Hard drive file and folder recovery program all Drives & Removable Media 2 30th Dec 2008 16:20
Thread Tools




Arabic Bulgarian Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Finnish French German Greek Hebrew Hungarian Italian Japanese Korean Latvian Lithuanian Norwegian Polish Portuguese Romanian Russian Serbian Slovak Spanish Swedish Thai Turkish Ukrainian

Copyright ©2006 - 2009 Computer Juice.

Powered by vBulletin® Copyright ©2000 - 2009 Jelsoft Enterprises Ltd. SEO by vBSEO ©2009, Crawlability, Inc.