I need an easy way of creating document containing a list of files from the Windows directory. This is my sugestion:
To drop (using shift for instance) the selected files and/or directories from Windows explorer into Textpad and get the list of those file in the Texpad
document (as opposed to opening the documents). It will allow me to get a list in the same way I do "ls > list" or "ls -l > list" in Unix.
ls -l into a document
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
Re: ls -l into a document
Hi hugzam!
Why don't you just use "dir > list" at the command line?hugzam wrote:It will allow me to get a list in the same way I do "ls > list" or "ls -l > list" in Unix.
-
- Posts: 1
- Joined: Wed Nov 10, 2004 11:14 am
Ok I have a trick for You... trough wich You will be able to create a text file with the directory structure (Sub-Directories and files) simply clicking on the voice "Show dir structure" in the contectual menù od the wanted directory. The procedure is not so long ... but u have to do it just once for all
I hope to be clear enough:
1st - Open TextPad (or another Text editor) and create a new text file
containing the following instructions:
@echo off
cmd.exe /c tree /F /A > C:\DirList.txt
start TextPad C:\DirList.txt
del C:\DirList.txt
exit
2nd - Save the above file as "Tree_Chart.bat" into "c:\MyCommands\"
3rd - Create a new text file and write the following code lines:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\Show current directory structure\command]
@="C:\\MyCommands\\Tree_Chart.bat \"%1\""
4th - Save the above file as "Shell Extension.reg"
5th - Close the Text editor
6th - Create a backup copy of the system registry
7th - Double click on the "Shell Extension.reg" confirming to add it to
the system registry
8th - Open The OS file manager and right click on a Directory
9th - Click on "Show current directory structure" voice in the contextual
menù opened
10th - A new TextPad instance should open the document You requested
NOW YOU ARE FREE TO PRINT IT OR SAVE IT 8)
I hope to be clear enough:
1st - Open TextPad (or another Text editor) and create a new text file
containing the following instructions:
@echo off
cmd.exe /c tree /F /A > C:\DirList.txt
start TextPad C:\DirList.txt
del C:\DirList.txt
exit
2nd - Save the above file as "Tree_Chart.bat" into "c:\MyCommands\"
3rd - Create a new text file and write the following code lines:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\Show current directory structure\command]
@="C:\\MyCommands\\Tree_Chart.bat \"%1\""
4th - Save the above file as "Shell Extension.reg"
5th - Close the Text editor
6th - Create a backup copy of the system registry
7th - Double click on the "Shell Extension.reg" confirming to add it to
the system registry
8th - Open The OS file manager and right click on a Directory
9th - Click on "Show current directory structure" voice in the contextual
menù opened
10th - A new TextPad instance should open the document You requested
NOW YOU ARE FREE TO PRINT IT OR SAVE IT 8)