mIRC Home    About    Download    Register    News    Help

Print Thread
$sfile for multible files #19694 16/04/03 12:55 PM
Joined: Dec 2002
Posts: 20
G
genderchanger Offline OP
Ameglian cow
OP Offline
Ameglian cow
G
Joined: Dec 2002
Posts: 20
there should definitly be a possibility to select multible files with $sfile or maybe a new identifier.

how about $sfile().multi

Re: $sfile for multible files #19695 16/04/03 09:25 PM
Joined: Dec 2002
Posts: 117
R
Rich Offline
Vogon poet
Offline
Vogon poet
R
Joined: Dec 2002
Posts: 117
How about this:
$sfile(dir,title,oktext,command)
allows for multiple selected files.

command is executed on every file selected, like in $findfile.
in the command you could use '$numfile' to get the total number of selected files.
the return value would be the total number of selected files.

(note that you can only use this if you specify title and oktext)


$input(Me like stars, You too?)
Re: $sfile for multible files #19696 18/04/03 07:45 PM
Joined: Dec 2002
Posts: 2,022
R
RoCk Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,022
//echo $sfile(d:\,title,oktext,echo test)
* Invalid parameters: $sfile

This works for you eh ?

Re: $sfile for multible files #19697 19/04/03 07:00 AM
Joined: Dec 2002
Posts: 266
Z
zack Offline
Fjord artisan
Offline
Fjord artisan
Z
Joined: Dec 2002
Posts: 266
I don't think it should be a property, but a parameter. $sfile(dir,title,oktext,N) where if N is 1 you can select multiple files.


You won't like it when I get angry.
Re: $sfile for multible files #19698 19/04/03 05:54 PM
Joined: Dec 2002
Posts: 117
R
Rich Offline
Vogon poet
Offline
Vogon poet
R
Joined: Dec 2002
Posts: 117
No it doesn't, since $sfile doesn't support multiple files yet. It was just a suggestion on how the $sfile identifier could be modified to support multiple files.


$input(Me like stars, You too?)
Re: $sfile for multible files #19699 21/04/03 01:41 AM
Joined: Dec 2002
Posts: 1,922
O
Online Offline
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Since returning a bunch of selected files in one line could easily reach the limit of ~950 chars, qwerty suggested an interesting way of retrieving the files with something similar to $regml(N).

I don't remember the exact idea, but hopefully Khaled noticed that before the old board burnt...

Re: $sfile for multible files #19700 22/04/03 01:20 PM
Joined: Dec 2002
Posts: 2,022
R
RoCk Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,022
Rich I'm sorry lol .. I thought you meant it already worked that way .. my bad :-)

I did like your idea and have been waiting for multiple file selection for a long time .. although there is a dll for that, I had an issue with it .. it seperated the filenames by enclosing the filename in parentheses, which is allowed in filenames. It would be cool if it were to seperate the filenames with a character that's not allowed in filenames.