Tech Support Guy banner
Status
Not open for further replies.
1 - 10 of 10 Posts

·
Registered
Joined
·
19 Posts
Discussion Starter · #1 ·
Back in my MS-DOS days I could get the directory of a folder and direct it to a text file. Now I'd like to do that again, but I can't figure out to make it work in Windows Explorer (for XP, but I also have Vista on my notebook).

Any suggestions? Do I have to run a DOS window. Is the syntax the same? (Can I remember it?) Are there any shareware or freeware program managers that provide this function?

Thank you.
 

·
Registered
Joined
·
8,450 Posts
At a command prompt:
Dir>dir.txt
Will create a file called dir.txt with a File/Folder list of the current folder.
This is in XP, and I'm assuming Vista will do the same.
 

·
Super Moderator
Joined
·
16,205 Posts
This will add a 'DIR List' option when you right-click on a Folder name.

First, copy and paste the code below into Notepad and save it in C:\Windows as DirList.CMD
Code:
@echo off 
dir %1 /-p /o:gne /a /s > "C:\DirList.txt"
start notepad "C:\DirList.txt"
exit
Now copy and paste this code into Notepad and save to the Desktop as DirList.REG
Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Folder\shell\DIR List]

[HKEY_CLASSES_ROOT\Folder\shell\DIR List\command]
@="C:\\Windows\\DirList.cmd \"%1\""
Double-click on this DirList.REG file and click Yes to confirm the merge.
That's it, try right-clicking on a Folder name then click 'DIR List'

BTW this works in Vista too.
 

·
Registered
Joined
·
19 Posts
Discussion Starter · #8 ·
Managed's instructions for creating a right-click DIR List option was well suited for what I wanted to accomplish. I would have explored some of the freeware programs further if that hadn't worked so easily.

Thanks to everyone for your suggestions.
 
1 - 10 of 10 Posts
Status
Not open for further replies.
Top