Hello cnet people !
I'm using a small apache server on a local network for a wiki, and I integrate php functions mixed with windows system calls as well.
I'd like to be able to output to a .txt file a search result of *.something on all the available network machines.
I can do the search with the exploer 'Find' function, although its speed is ridiculously slow. However, I can't seem to be able to find an equivalent function in DOS. (DIR is only applicable on one's own machine)
Any ideas ?
Thank you
Dir works on any mapped drive (mapping means it gets a drive letter for Windows), not only on a local machine. Could you map all your drives?
Kees
nope =(
is there a way to send the output of the 'find' to a text file ?
The output of the dos find command is redirected just like any other command.
Said script would have to map a drive, dir, find, grep, and so on, then un map the drive.
So it is all possible. But I find more and more people that don't want to write script.
Bob
but I really couldn't find a command to do it, and mapping>unmapping drives is very ugly a workaround.
It seems i've found a solution, by using the 'net view \\computername' command which gives me toplevel shared folders (I know the network computer names already) and then I can 'dir *.mp3 /S' on that folder
I hope this helps someone, I've been banging my head on the wall for a while.
I might post a complete script when I'm finished
| Forum legend: | |
| Locked thread | |
| Moderator | |
![]() |
CNET staff |
![]() |
Samsung staff |
| Norton Authorized Support team | |
| AVG staff | |
| Windows Outreach team | |
![]() |
Dell staff |
| Intel staff | |