Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1107
  • Last Modified:

How to search in network drive using cmd?

Is there method to search files in my mapped network drive in windows using cmd ?
My search companion using windows explorer is disabled!
0
jaisonshereen
Asked:
jaisonshereen
  • 2
  • 2
2 Solutions
 
BrandonGalderisiCommented:
either
dir \\servername\sharename\*.txt /s

or dir h:\*.txt /s

where h: is a mapped drive.
0
 
CorruptedLogicCommented:
use the dir command. type dir / ? for a list of available options.
0
 
jaisonshereenAuthor Commented:
is there any way to search keywords inside the files ?
0
 
CorruptedLogicCommented:
not that i know of. You'll need to have something like google desktop search in order to do that if your windows search assistant is broken.
0
 
BrandonGalderisiCommented:
not in any efficient way.  Searching non-indexed locations for items in files will always be slow.  

But you can do it with a grep like tool:

http://gnuwin32.sourceforge.net/packages/grep.htm
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now