Windows Legacy OS forum

General discussion

searching network computer files through the command line

by t26l / November 7, 2008 1:36 AM PST

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

Discussion is locked
You are posting a reply to: searching network computer files through the command line
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: searching network computer files through the command line
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.
Collapse -
Re: dir.
by Kees Bakker / November 7, 2008 3:31 AM PST

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

Collapse -
no
by t26l / November 7, 2008 6:59 AM PST
In reply to: Re: dir.

nope =(

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

Collapse -
Pipes, redirection?
by R. Proffitt Forum moderator / November 7, 2008 9:48 AM PST
In reply to: no

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

Collapse -
i love scripts
by t26l / November 7, 2008 7:14 PM PST
In reply to: Pipes, redirection?

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

Popular Forums
icon
Computer Newbies 10,686 discussions
icon
Computer Help 54,365 discussions
icon
Laptops 21,181 discussions
icon
Networking & Wireless 16,313 discussions
icon
Phones 17,137 discussions
icon
Security 31,287 discussions
icon
TVs & Home Theaters 22,101 discussions
icon
Windows 7 8,164 discussions
icon
Windows 10 2,657 discussions

CNET FORUMS TOP DISCUSSION

Help, my PC with Windows 10 won't shut down properly

Since upgrading to Windows 10 my computer won't shut down properly. I use the menu button shutdown and the screen goes blank, but the system does not fully shut down. The only way to get it to shut down is to hold the physical power button down till it shuts down. Any suggestions?