Version: 2008
Advanced Search
advertisement
advertisement
Click Here

Forum display:

Windows XP: searching network computer files through the command line

by t26l - 11/7/08 9:36 AM
advertisement
Post 1 of 5

searching network computer files through the command line

by t26l - 11/7/08 9:36 AM

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

Post 2 of 5

Re: dir.

by Kees Bakker Moderator - 11/7/08 11:31 AM In reply to: searching network computer files through the command line by t26l

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

Post 3 of 5

no

by t26l - 11/7/08 2:59 PM In reply to: Re: dir. by Kees Bakker Moderator

nope =(

is there a way to send the output of the 'find' to a text file ?

Post 4 of 5

Pipes, redirection?

by R. Proffitt Moderator - 11/7/08 5:48 PM In reply to: no by t26l

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

Post 5 of 5

i love scripts

by t26l - 11/8/08 3:14 AM In reply to: Pipes, redirection? by R. Proffitt Moderator

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 Locked thread
Moderator Moderator
CNET staff CNET staff
Samsung staff Samsung staff
Norton Authorized Support team Norton Authorized Support team
AVG staff AVG staff
Windows Outreach team Windows Outreach team
Dell staff Dell staff
Intel staff Intel staff
Powered by Jive Software