Page 1 of 1

ls -l into a document

Posted: Mon Sep 27, 2004 6:08 pm
by hugzam
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.

Re: ls -l into a document

Posted: Wed Sep 29, 2004 5:29 am
by Thomas Schremser
Hi hugzam!
hugzam wrote:It will allow me to get a list in the same way I do "ls > list" or "ls -l > list" in Unix.
Why don't you just use "dir > list" at the command line?

Posted: Wed Nov 10, 2004 12:06 pm
by Morpheus_1999
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 :shock: :o :wink: 8) :mrgreen: