Jump to content


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.

Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.


Command Line Share Search

  • Please log in to reply
1 reply to this topic

#1 DVaD


  • Members
  • 59 posts
  • Local time:08:49 PM

Posted 01 April 2011 - 08:53 AM

Hey All,

I need some help. I'm trying to figure out how to search all the file shares on a server and output a list of files with a certain extension.

I'm currently searching for TIF files. This is the command I've been trying to use, but it doesn't seem to want to work.

DIR /S \\server\ *.tif >> "C:\tif files.txt"

I keep getting "The network path was not found." My guess is that it's not capable of just searching all the shares and that I'll probably have to search each share individually. Does anyone have any suggestions?

Edited by hamluis, 01 April 2011 - 09:46 AM.
Moved from XP to NT.

BC AdBot (Login to Remove)


#2 cryptodan


    Bleepin Madman

  • Members
  • 21,868 posts
  • Gender:Male
  • Location:Catonsville, Md
  • Local time:01:49 AM

Posted 01 April 2011 - 11:30 PM

You have to specify the share name after server. So it should be this:

sir /s \\server\sharename *.tif >> c:\tiff.txt

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users