Home
About
Download
Register
News
Help
Register
Log In
Forums
Scripts & Popups
Random File from specified directory
Forums
Active Threads
Search
Who's Online
Help
Print Thread
Random File from specified directory
#
81659
02/05/04
06:00 AM
Joined:
Feb 2003
Posts: 43
K
Kazz
OP
Ameglian cow
OP
Kazz
Ameglian cow
K
Joined:
Feb 2003
Posts: 43
how do you pull a random file from a specified directory?
Mr.Newb
A.K.A Kazz
Copy Link to Clipboard
Re: Random File from specified directory
#
81660
02/05/04
06:06 AM
Joined:
Dec 2003
Posts: 199
Cali
K
Kriminal
Vogon poet
Kriminal
Vogon poet
K
Joined:
Dec 2003
Posts: 199
Cali
//echo -a $findfile(DIR,*.FILETYPE,$rand(1,$findfile(DIR,*.FILETYPE,0)))
-Krim
Want to Link Servers? PM Me
- EliteIRC.dyndns.org -
Copy Link to Clipboard
Re: Random File from specified directory
#
81661
02/05/04
06:07 AM
Joined:
Jan 2004
Posts: 24
W
Winter_Demon
Ameglian cow
Winter_Demon
Ameglian cow
W
Joined:
Jan 2004
Posts: 24
Do this:
alias randfile {
set %i $rand(1,$findfile(C:\,*,0))
set %randfile $findfile(C:\,*,%i)
echo -a %randfile
}
This will put a random file from a random directory in C:\ driver, and echo it's name to you.
hope this is what you wanted.
Copy Link to Clipboard
Hop To
News and Discussions ------
Latest News
General Discussion
Support ------
mIRC Help
Connection Issues
Scripts & Popups
Development ------
Feature Suggestions
Developers
Bug Reports
Print Thread
Switch to Threaded Mode
Show Likes
Link Copied to Clipboard
View Profile
Private Message
Website
Follow User
Forum Posts
View Profile
Private Message
Website
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
Forum Rules
·
Mark All Read
Contact Us
·
Help
·
mIRC Homepage