Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

is it possible to create a textual map of all files and folders on a h


  • Please log in to reply

#1
adifrank

adifrank

    Member

  • Member
  • PipPipPip
  • 226 posts
hi. not sure if this is the correct forum to post this, but couldn't find a better one.
i have a bunch of external hard drives. sometimes i want to know what is on one of them without actually plugging it in and accessing it. is there a way to create a sort of textual map of folders and files that are on a drive? ideally i would like something that shows the folder structure and also file size, not just the names. is there anything out there that can do that? seems like there should be, but i tried googling and couldn't find anything.

thanks
  • 0

Advertisements


#2
RKinner

RKinner

    Malware Expert

  • Expert
  • 24,701 posts
  • MVP
You can do it in DOS:

Start, All Programs, Accessories, XP: Command Prompt, Win 7/ Vista:right click on Command Prompt and Run as Administrator, Continue. Type with an Enter after each line:

C:

(This just tells it which drive to look at. Change it if you want to do D: or E: or whatever)

cd  \

(I use two spaces in the code boxes so you can see where one space goes. This just tells it to start at the root of the drive.)

dir  /a  /s  >  \filelist.txt

(Do a dir command showing all files (including hidden files) and work down through the sub folders. This will take a few minutes to finish.)

(You can look at the output file in notepad (older systems may need to use wordpad as the file can get too big for notepad. My Win 7 filelist is 25.3 MB so notepad takes about a minute to load.)

notepad  \filelist.txt



(filelist.txt is just an arbitrary name. the \ will put it at C:\ since we are using the C: or you could specify a different drive if you like)

You can modify the output by using /O followed by one or more of the following:

N By name (alphabetic) S By size (smallest first)
E By extension (alphabetic) D By date/time (oldest first)
G Group directories first - Prefix to reverse order

Example:
dir  /a  /s  /OGD  >  D:\filelist.txt

This changes the output so that it lists all of the subfolders first then the files with the oldest first. I use this sometimes when looking for malware.

Repeat for each drive using a different file name for the output each time.

The unsorted output looks like this:

Volume in drive C is OS
Volume Serial Number is 887A-465F

Directory of C:\

02/14/2012 12:30 PM <DIR> $RECYCLE.BIN
06/10/2009 02:42 PM 24 autoexec.bat
01/19/2012 05:38 PM 3,341 bcdoutput.txt
07/25/2009 06:42 AM 8,192 BOOTSECT.BAK
02/14/2012 12:33 PM <DIR> ComboFix
02/14/2012 12:32 PM 16,575 ComboFix.txt
05/12/2012 06:33 PM <DIR> Config.Msi
06/10/2009 02:42 PM 10 config.sys
07/13/2009 09:53 PM <JUNCTION> Documents and Settings [C:\Users]
02/09/2012 12:35 AM <DIR> Downloads
11/25/2011 07:53 PM 4,257,415,168 DVD Video Recording.iso
11/25/2011 07:53 PM 4,314 DVD Video Recording.mds
12/03/2011 01:14 PM 85 evtjunk.txt
05/25/2012 05:25 AM <DIR> f72ee6c15073b14d8089afe5d4b1085d
05/23/2012 09:23 AM 2,103,349,248 hiberfil.sys
...


Ron
  • 0

#3
adifrank

adifrank

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 226 posts
hi. thanks for your reply ron!
i tried that and it worked. but the outcome is kind of too clustered for my particular use. i need something i can easily just look at and understand what is on the drive.
i found a free program called TreeSize that is able to output a pdf - with an overview of folders and files which is pretty much what i'm looking for (although it isn't exactly the main use for this program).
ideally, i was thinking more along the lines of having some sort of program output an interactive file which is basically the drive folder system, but with only the name/size/etc. of the files within each folder, not the actual file itself. it would just a representation of the drive file/folder structure - where i could click to open or close folders and see what is in each one.
but so far haven't found this :)
if you think of anything, please let me know. in the meantime i'll continue using this TreeSize software. thanks!
  • 0

#4
Ztruker

Ztruker

    Member 5k

  • Technician
  • 7,091 posts
Treesize Free is what you need. Give it a try.
  • 0

#5
rockmilk

rockmilk

    Certified monkey.

  • Member
  • PipPipPipPipPip
  • 2,773 posts
Another program that is simular to treesize is sequia view.
http://w3.win.tue.nl...on/sequoiaview/
  • 0

#6
adifrank

adifrank

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 226 posts
yeah. i've seen a few of these type of disk-space analyzers. but my needs are not so much for analyzing disk space, but rather just keeping track of which files and folders are in which disk. i work on video and graphic projects on several different external hard drives. i keep a textual document which pretty much sums up what exists on each. but it would be far better to have this generated automatically. the tree-view these disk-space analyzers offer doesn't do much for me. thanks though.
  • 0

#7
RKinner

RKinner

    Malware Expert

  • Expert
  • 24,701 posts
  • MVP
You could import the output of the dir command into an Excel spreadsheet and massage it there.
  • 0

#8
Ztruker

Ztruker

    Member 5k

  • Technician
  • 7,091 posts
dir h: /b /s > xDrive.txt will give you a nice text layout of the h: drive with no headers or summary to mess with. Looks like this:

H:\msdia80.dll
H:\Oracle
H:\Temp
H:\VirtualBox VMs
H:\WebUploads
H:\Windows 7 All Versions
H:\$RECYCLE.BIN\S-1-5-21-2486664792-369880660-4033408540-1000\$R39309S.2
H:\$RECYCLE.BIN\S-1-5-21-2486664792-369880660-4033408540-1000\$R39309S.2\htdocs
H:\$RECYCLE.BIN\S-1-5-21-2486664792-369880660-4033408540-1000\$R39309S.2\repair
H:\Oracle\VirtualBox
H:\Oracle\VirtualBox\accessible
H:\Oracle\VirtualBox\doc
H:\Oracle\VirtualBox\drivers
H:\VirtualBox VMs\XP Pro.ova
H:\Windows 7 All Versions\W7All
H:\Windows 7 All Versions\W7All.iso
H:\Windows 7 All Versions\Win7x64.wim
H:\Windows 7 All Versions\W7All\autorun.inf
H:\Windows 7 All Versions\W7All\boot
H:\Windows 7 All Versions\W7All\bootmgr
H:\Windows 7 All Versions\W7All\efi
H:\Windows 7 All Versions\W7All\setup.exe
H:\Windows 7 All Versions\W7All\sources
H:\Windows 7 All Versions\W7All\support
H:\Windows 7 All Versions\W7All\upgrade
H:\Windows 7 All Versions\W7All\boot\bcd
H:\Windows 7 All Versions\W7All\boot\boot.sdi
H:\Windows 7 All Versions\W7All\boot\bootfix.bin
H:\Windows 7 All Versions\W7All\boot\bootsect.exe
H:\Windows 7 All Versions\W7All\boot\en-us
H:\Windows 7 All Versions\W7All\boot\etfsboot.com
H:\Windows 7 All Versions\W7All\boot\fonts
H:\Windows 7 All Versions\W7All\boot\memtest.exe
H:\Windows 7 All Versions\W7All\boot\en-us\bootsect.exe.mui
H:\Windows 7 All Versions\W7All\boot\fonts\chs_boot.ttf
H:\Windows 7 All Versions\W7All\boot\fonts\cht_boot.ttf
H:\Windows 7 All Versions\W7All\boot\fonts\jpn_boot.ttf
H:\Windows 7 All Versions\W7All\boot\fonts\kor_boot.ttf
H:\Windows 7 All Versions\W7All\boot\fonts\wgl4_boot.ttf
H:\Windows 7 All Versions\W7All\efi\microsoft
H:\Windows 7 All Versions\W7All\efi\microsoft\boot
H:\Windows 7 All Versions\W7All\efi\microsoft\boot\bcd
H:\Windows 7 All Versions\W7All\efi\microsoft\boot\fonts
H:\Windows 7 All Versions\W7All\efi\microsoft\boot\fonts\chs_boot.ttf
H:\Windows 7 All Versions\W7All\efi\microsoft\boot\fonts\cht_boot.ttf
H:\Windows 7 All Versions\W7All\efi\microsoft\boot\fonts\jpn_boot.ttf
H:\Windows 7 All Versions\W7All\efi\microsoft\boot\fonts\kor_boot.ttf
H:\Windows 7 All Versions\W7All\efi\microsoft\boot\fonts\wgl4_boot.ttf
H:\Windows 7 All Versions\W7All\sources\actionqueue.dll
H:\Windows 7 All Versions\W7All\sources\admtv3check.dll
H:\Windows 7 All Versions\W7All\sources\alert.gif
H:\Windows 7 All Versions\W7All\sources\apds.dll
H:\Windows 7 All Versions\W7All\sources\apircl.dll
H:\Windows 7 All Versions\W7All\sources\appcompat.xsl
H:\Windows 7 All Versions\W7All\sources\appcompat_bidi.xsl

Also, Directory Tree List Maker generates a nice text map of a drive or folder. It's output looks like this:

==================================================
Directory : C:\
Creation Time : 5/27/2012 2:07:49 PM
==================================================
Generated by Directory Tree List Maker
Version 1.1 - April 2008
Created by Olivier Sangala
http://olivier.sangala.free.fr
[email protected]
==================================================

Columns : Name - Creation Time - Last Access Time - Last Write Time - File Size - Attributes - 

===
C:\
===

$Recycle.Bin                                      	7/13/2009 11:18:56 PM	10/31/2011 12:10:58 PM	10/31/2011 12:10:58 PM	-	Hidden, System, Directory	
bootwiz                                           	12/11/2009 10:39:27 PM	12/29/2010 5:32:49 PM	12/29/2010 5:32:49 PM	-	ReadOnly, Hidden, System, Directory	
Brother                                           	3/15/2011 4:44:30 PM	5/21/2011 8:26:43 PM	5/21/2011 8:26:43 PM	-	Directory	
Config.Msi                                        	5/22/2010 8:10:22 PM	5/27/2012 2:03:42 PM	5/27/2012 2:03:42 PM	-	Hidden, System, Directory	
Device                                            	10/29/2011 5:04:10 PM	10/29/2011 5:04:10 PM	10/29/2011 5:04:10 PM	-	Directory	
Documents and Settings                            	7/14/2009 1:08:56 AM	7/14/2009 1:08:56 AM	7/14/2009 1:08:56 AM	-	Hidden, System, Directory, ReparsePoint, NotContentIndexed	
NVIDIA                                            	12/12/2009 6:04:41 PM	12/12/2009 6:04:41 PM	12/12/2009 6:04:41 PM	-	Directory	
output media                                      	8/6/2011 8:11:23 PM	8/7/2011 4:59:51 PM	8/7/2011 4:59:51 PM	-	Directory	
PerfLogs                                          	7/13/2009 11:20:08 PM	7/31/2011 9:16:03 PM	7/31/2011 9:16:03 PM	-	Directory	
Program Files                                     	7/13/2009 11:20:08 PM	5/11/2012 8:40:30 PM	5/11/2012 8:40:30 PM	-	ReadOnly, Directory	
Program Files (x86)                   

=========
C:\NVIDIA
=========

DisplayDriver                                     	12/12/2009 6:04:41 PM	12/21/2011 9:28:02 PM	12/21/2011 9:28:02 PM	-	Directory	

=======================
C:\NVIDIA\DisplayDriver
=======================

191.66                                            	12/12/2009 6:04:41 PM	12/12/2009 6:09:44 PM	12/12/2009 6:09:44 PM	-	Directory	
191.78                                            	12/31/2009 6:19:32 PM	12/31/2009 6:19:32 PM	12/31/2009 6:19:32 PM	-	Directory	
270.71                                            	12/21/2011 9:28:02 PM	12/21/2011 9:28:02 PM	12/21/2011 9:28:02 PM	-	Directory	

==============================
C:\NVIDIA\DisplayDriver\191.66
==============================

WinVista_Win7                                     	12/12/2009 6:04:41 PM	12/12/2009 6:04:41 PM	12/12/2009 6:04:41 PM	-	Directory	
WinVista_Win7_64                                  	12/12/2009 6:09:44 PM	12/12/2009 6:09:44 PM	12/12/2009 6:09:44 PM	-	Directory	

============================================
C:\NVIDIA\DisplayDriver\191.66\WinVista_Win7
============================================

English                                           	12/12/2009 6:04:41 PM	12/12/2009 6:04:56 PM	12/12/2009 6:04:56 PM	-	Directory	

====================================================
C:\NVIDIA\DisplayDriver\191.66\WinVista_Win7\English
====================================================

3DVision_191.66.exe                               	12/12/2009 6:04:49 PM	12/12/2009 6:04:49 PM	10/31/2009 6:45:24 AM	16288928	Archive	
data1.cab                                         	12/12/2009 6:04:44 PM	12/12/2009 6:04:44 PM	10/31/2009 12:45:55 AM	1255714	Archive	
data1.hdr                                         	12/12/2009 6:04:46 PM	12/12/2009 6:04:46 PM	10/31/2009 12:45:55 AM	10840	Archive	
data2.cab                                         	12/12/2009 6:04:44 PM	12/12/2009 6:04:44 PM	10/31/2009 12:45:55 AM	512	Archive	
DPInst.ex_                                        	12/12/2009 6:04:46 PM	12/12/2009 6:04:46 PM	10/31/2009 12:45:55 AM	376722	Archive	
ISSetup.dll                                       	12/12/2009 6:04:56 PM	12/12/2009 6:04:56 PM	10/31/2009 12:45:55 AM	535552	Archive	
layout.bin                                        	12/12/2009 6:04:44 PM	12/12/2009 6:04:44 PM	10/31/2009 12:45:55 AM	509	Archive	
modes.txt                                         	12/12/2009 6:04:44 PM	12/12/2009 6:04:44 PM	10/31/2009 12:45:00 AM	24752	Archive	
nvapi.dl_                                         	12/12/2009 6:04:44 PM	12/12/2009 6:04:44 PM	10/31/2009 12:45:55 AM	535826	Archive	

  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP