Calgarypuck Forums - The Unofficial Calgary Flames Fan Community

Go Back   Calgarypuck Forums - The Unofficial Calgary Flames Fan Community > Main Forums > The Off Topic Forum > Tech Talk
Ivrnet

Notices

Reply
 
Thread Tools
Old 03-10-2017, 11:02 AM   #1
DoubleK
First Line Centre
 
DoubleK's Avatar
 
Join Date: Aug 2012
Location: Calgary, AB
Exp:
Default Searching folders on Network Drive

Is there a way to search a directory structure in Windows to identify which folders have files in them?

I'm trying to chase down some files and it's taking forever to open each folder to find nothing.
DoubleK is offline   Reply With Quote
Old 03-10-2017, 11:06 AM   #2
ken0042
Playboy Mansion Poolboy
 
ken0042's Avatar
 
Join Date: Apr 2004
Location: Close enough to make a beer run during a TV timeout
Exp:
Default

To a certain extent you could use Windirstat.
http://download.cnet.com/WinDirStat/...-10614593.html

It's meant to help you identify what folders have large files, but would do the trick.
ken0042 is offline   Reply With Quote
Old 03-10-2017, 11:09 AM   #3
DoubleK
First Line Centre
 
DoubleK's Avatar
 
Join Date: Aug 2012
Location: Calgary, AB
Exp:
Default

Thx. I will see if IT will let me use it
DoubleK is offline   Reply With Quote
Old 03-10-2017, 11:15 AM   #4
Fuzz
Franchise Player
 
Fuzz's Avatar
 
Join Date: Mar 2015
Exp:
Default

Hold down shift and right click the root folder you want to search in explorer. Select "open command window here." Type

tree /f >files.txt

This will make a text file in that folder of the entire directory tree below it. You can then search or browse through it.
__________________
Air Canada - We're not happy until you're not happy.
Telus - hold on tight, we're going in dry!
Fuzz is offline   Reply With Quote
The Following 3 Users Say Thank You to Fuzz For This Useful Post:
Old 03-10-2017, 11:30 AM   #5
DoubleK
First Line Centre
 
DoubleK's Avatar
 
Join Date: Aug 2012
Location: Calgary, AB
Exp:
Default

That's amazing and exactly what I need. Thanks
DoubleK is offline   Reply With Quote
Old 03-10-2017, 11:59 AM   #6
calculoso
Franchise Player
 
calculoso's Avatar
 
Join Date: Oct 2001
Location: Ontario
Exp:
Default

Quote:
Originally Posted by Fuzz View Post
Hold down shift and right click the root folder you want to search in explorer. Select "open command window here." Type

tree /f >files.txt

This will make a text file in that folder of the entire directory tree below it. You can then search or browse through it.
Tree will only give the directory structure, not files, correct?

maybe in the command window would be better?
dir /s > files.txt
calculoso is offline   Reply With Quote
Old 03-10-2017, 12:05 PM   #7
Fuzz
Franchise Player
 
Fuzz's Avatar
 
Join Date: Mar 2015
Exp:
Default

The /f switch gives files.
__________________
Air Canada - We're not happy until you're not happy.
Telus - hold on tight, we're going in dry!
Fuzz is offline   Reply With Quote
Old 03-10-2017, 12:57 PM   #8
DoubleK
First Line Centre
 
DoubleK's Avatar
 
Join Date: Aug 2012
Location: Calgary, AB
Exp:
Default

On a completely different note, why wouldn't this come up in a Google search? I did that before I posted here.
DoubleK is offline   Reply With Quote
Old 03-10-2017, 01:00 PM   #9
Fuzz
Franchise Player
 
Fuzz's Avatar
 
Join Date: Mar 2015
Exp:
Default

Not sure, other than perhaps my knowledge is vastly greater than Google's? That's my best guess, anyway.
__________________
Air Canada - We're not happy until you're not happy.
Telus - hold on tight, we're going in dry!
Fuzz is offline   Reply With Quote
The Following User Says Thank You to Fuzz For This Useful Post:
Old 03-10-2017, 05:04 PM   #10
GoinAllTheWay
#1 Goaltender
 
GoinAllTheWay's Avatar
 
Join Date: Apr 2003
Location: Not sure
Exp:
Default

That's a neat trick Fuzz, thanks. Are you in IT or just an advanced user?
GoinAllTheWay is offline   Reply With Quote
Old 03-10-2017, 05:20 PM   #11
Fuzz
Franchise Player
 
Fuzz's Avatar
 
Join Date: Mar 2015
Exp:
Default

I work at a small company, so IT is my "other" job. I fell into the role because I had plenty of personal experience, and gave it a shot. So I built everything on our network from scratch, servers, all the PC's...I know a bit about most aspects, domain admin, VM's, simple programming, website design, networking, learned as I went. I've got better uptime than the Microsoft cloud! I'm also the guy everyone comes to with problems like "I need a list of all the folders on the network drive" and stuff like that. It's probably 10% of my time, so it adds some nice variety.
__________________
Air Canada - We're not happy until you're not happy.
Telus - hold on tight, we're going in dry!
Fuzz is offline   Reply With Quote
The Following User Says Thank You to Fuzz For This Useful Post:
Old 06-29-2017, 10:59 AM   #12
DoubleK
First Line Centre
 
DoubleK's Avatar
 
Join Date: Aug 2012
Location: Calgary, AB
Exp:
Default

I used this again today. So thanks again.

Good thing I didn't agree to a royalty. . .
DoubleK is offline   Reply With Quote
Old 06-29-2017, 11:58 AM   #13
Hugh Jahrmes
Powerplay Quarterback
 
Hugh Jahrmes's Avatar
 
Join Date: Nov 2010
Exp:
Default

Quote:
Originally Posted by DoubleK View Post
I used this again today. So thanks again.

Good thing I didn't agree to a royalty. . .

FYI.. Basically, the shell commands can use the "/?" switch for a breakdown of what different switches / flags can be used and their functions. Also if there isn't too much stuff to sift through, instead of dumping to a text file with " > stuff.txt", can add " | more" at the end to add page breaks you can move through with a key press.. both handy if you're following steps in some recommended fix (lot of network issues) that a bunch of require command prompt commands and you'd like to get a better understanding of what's being accomplished
__________________
Long time listener, first time caller.
Hugh Jahrmes is offline   Reply With Quote
Old 06-29-2017, 12:34 PM   #14
Fuzz
Franchise Player
 
Fuzz's Avatar
 
Join Date: Mar 2015
Exp:
Default

The nice thing about dumping it to a text file is it is searchable. I also often open it in Excel, and you can create batch commands like renaming, or making directories based on the file names from the list. So if I end up with a list like:

file 1
file 2
file 3
file 4
file 5

I can add a column with "rename" and fill down, and another column with text that I want to add before or after(say, the date or whatever). Make a concatenate formula if needed, then I can just copy and paste it back in a command window and rename a bunch of files all at once. Or move them or whatever. Handy when you have thousands of files.
__________________
Air Canada - We're not happy until you're not happy.
Telus - hold on tight, we're going in dry!
Fuzz is offline   Reply With Quote
The Following User Says Thank You to Fuzz For This Useful Post:
Old 06-29-2017, 01:06 PM   #15
oilyfan
Powerplay Quarterback
 
oilyfan's Avatar
 
Join Date: Dec 2009
Location: SE Calgary
Exp:
Default

That my friend is a great tip! thanks. I have screwed around with batch renamers, but they all depend on some sort of logic. It's better this way because you can change individual ones independently. what is the command to rename the batch?
__________________
"In theory, there is no difference between theory and practice. But in practice, there is" Jan Van De Snepscheu
oilyfan is offline   Reply With Quote
Old 06-29-2017, 07:57 PM   #16
Fuzz
Franchise Player
 
Fuzz's Avatar
 
Join Date: Mar 2015
Exp:
Default

Sorry, not sure I get the question? Basically each row in excel is command, so once you fill the sheet you can just copy and paste into the command window, or put it in a bat file. It runs each line separately.
__________________
Air Canada - We're not happy until you're not happy.
Telus - hold on tight, we're going in dry!
Fuzz is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 11:40 AM.

Calgary Flames
2016-17




Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright Calgarypuck 2016