Skip to content
MSN

folder and files

A TG007 community discussion started by DreaM.

Discussion 9 posts
Page 1 of 1
Open
Topic #875 · 9 published posts · 898 views

is there anyway to know how many files I have in any folder?

 

let's say that I have folder called Test and it has files: 1.txt and 2.txt

 

is there anyway to know using the mirc commands how many files in this folder without opening foler manually sure?

 

my problem is: am working on log viewer and I want the bot to load all logs (text files) into a list in my dialog but how can I know how many files in the folder logs automatically to be able to use while loop ?

 

also the 2nd question is:

 

I know how to let the script saves logs automatically to text file but how to display them in edit or list in my dialog to look like mirc page exactly as print screen sure after clicking the specified text file in the list?

 

 

Edited Jul 13, 2004 12:12 AM by err0r

$findfile($mircdir\logs,*.*,0)

 

will show how many files are in the logs folder

My code does NOT have bugs. It just develops random features.

thank you ozzy but what is about 2nd question please? biggrin.gif

you answered your own question, use a loop to get the files

My code does NOT have bugs. It just develops random features.

no ozzy my 2nd question was:

 

when i click the text file of the log i want it to (did -a <edit in my dialog) and I see the log as the real screen mirc page not only text file biggrin.gif

i suggest you start reading about custum windows and docking them in dialogs

 

type /help in mirc and search for them

My code does NOT have bugs. It just develops random features.

thank you, I think it is a bit hard for me now but I can try biggrin.gif

I know how to let the script saves logs automatically to text file but how to display them in edit or list in my dialog to look like mirc page exactly as print screen sure after clicking the specified text file in the list?

So, are you saying you want to click on a filename in your listbox, and have it display what is inside of the file?

yes warrior exactly, i want it to be shown in big edit in the dialog but shown like the real main irc window not only shown as text file.

 

I have seen this in mIRC bots on IRCD but they made it in new window called @log but i want to make it in dialog