mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Mar 2010
Posts: 2
C
Crazar Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
C
Joined: Mar 2010
Posts: 2
I am trying to make a list of a dir that has subdir's. and put those findings into a .txt file. I guess I will start simple.
What is the best way so the bot wont get hammered and die for an overload?

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Could use the DOS dir command using a redirect to the text file

For all of the directories on your C drive, you would use
Code:
/run dir c:\ /ad /n /s > file.txt


Joined: Mar 2010
Posts: 2
C
Crazar Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
C
Joined: Mar 2010
Posts: 2
What I'm trying to do is. Kinda make a search database of several computers. With using the Folders Name as the entries.
So if I had a Folder named Pizza on 2 different computers. When i search it will tell me which computer has the Folder.

Does that make any sense or should i go more in depth?

Joined: Feb 2009
Posts: 133
C
Vogon poet
Offline
Vogon poet
C
Joined: Feb 2009
Posts: 133
try
//echo -a $sfile(*)


WorldDMT
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Hmm.. so you don't just want a list of the directories, you also want to be able to refer to which computer has a specific directory on it. I can see this being possible, but I'll want to test code first. Please note that if this is possible, if you have the same directory name on more than one drive/computer, then you'll get the information for all systems that have a match.

This gets more complicated, but I'll toss it around in my brain and see what I come up with.


Link Copied to Clipboard