DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Good Folder Printer  (Read 10,490 times)

imtrobin

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 125
Good Folder Printer
« on: August 25, 2005, 06:57 AM »
Hi,

I've been looking through a few file/folder printer, and can't find one which does this. Basically, I want the output of the folders to be printed with indents eg.

If the folder structure is

C:\Folder1\Folder2\Folder3\file.txt

Then the output file format (txt or html) looks something like

  C:\
      Folder1
          Folder2
              Folder3
                  file.txt

Anyone has a recommendation for such a program? Preferably freeware.

Carol Haynes

  • Waffles for England (patent pending)
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 8,073
    • Cody Award
    • Furry Fandom Badge - Furry Fandom
Re: Good Folder Printer
« Reply #1 on: August 25, 2005, 09:09 AM »
You could try http://www.karenware.com/powertools/ptdirprn.asp. I used this ages ago but haven't currently got it installed so can't remember exactly what or how it will print.

Karen has a lot of interesting programmes, all of which are free and you can download the source code too.

AbteriX

  • Member #520
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 1,150
Re: Good Folder Printer
« Reply #2 on: August 25, 2005, 09:32 AM »
Open DOS-Box:

C:\>  tree   "Folder1"   >   DirList.txt


Code
C:\PROGRAM FILES
├───3D GIF Designer
│   ├───Animations
│   │   ├───Banners
│   │   ├───Buttons
│   │   └───Logos
│   └───Pictures
│       ├───Presets
│       └───Textures
├───AHK_FileCreater
├───CLCL Ver 1.1.2 (11Feb2005)
│   ├───clcl112_eng
│   │   ├───User

Then open and print DirList.txt

HTH  :(
Greetings, Stefan.
« Last Edit: August 25, 2005, 09:35 AM by Stefan »

imtrobin

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 125
Re: Good Folder Printer
« Reply #3 on: August 25, 2005, 04:49 PM »
Karen's tool didn't work. The dos tree command is cool. Thanks!

AbteriX

  • Member #520
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 1,150
Re: Good Folder Printer
« Reply #4 on: August 25, 2005, 05:54 PM »
The dos tree command is cool. Thanks!
Fine  :)
Here is an tool how generates list of an folder containt:
Directory Lister from http://freeware.prv.pl
The version 0.7.2 was freeware, the new one is now shareware.

But thought this brings not the output you need ?


===
Nothing's impossible for those who don't have to do it.
Greetings, Stefan.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Good Folder Printer
« Reply #5 on: August 25, 2005, 07:17 PM »
this sounds like a good tool to add to our upcoming Context Menu Commander program.

Edvard

  • Coding Snacks Author
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 3,027
    • Participated in NANY Challenge Once
    • Coding Snacks
    • Linux User
Re: Good Folder Printer
« Reply #6 on: August 25, 2005, 07:33 PM »
In the meantime... to automagically print the output; make a .bat file with this code:
Code
@echo off
tree /F /A %1 > "%temp%\dirlist"
start /w notepad /p "%temp%\dirlist"
del "%temp%\dirlist"
exit

call it "Dirlist.bat" or something, and save it to your c:\ dir then make a .reg file:
Code
REGEDIT4

[HKEY_CLASSES_ROOT\Directory\shell\Dirlist\command]
@="C:\\dirlist.bat %1\\"
(you could also replace "C:\" with a path to wherever you really want to put the .bat file, and remember to double the slashes...)
and right-click Merge.

Now, right-click on any directory and select "Dirlist"
:up:

Context Menu Commander?!? Oooh, I can't wait!... (no more digging in the registry, whew!)
All children left unattended will be given a mocha and a puppy.
« Last Edit: August 25, 2005, 07:35 PM by Edvard »

imtrobin

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 125
Re: Good Folder Printer
« Reply #7 on: August 25, 2005, 07:39 PM »
Here is an tool how generates list of an folder containt:
Directory Lister from http://freeware.prv.pl
The version 0.7.2 was freeware, the new one is now shareware.

But thought this brings not the output you need ?

Not quite, the output of the folders is not indented.

vegas

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 357
Re: Good Folder Printer
« Reply #8 on: July 17, 2007, 02:59 PM »
Directory Lister, easily the best piece of software out there in this category has been updated to a Final Version 1.0,  and is now shareware  :(

http://www.krksoft.com/Whatsnew.php

Edvard

  • Coding Snacks Author
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 3,027
    • Participated in NANY Challenge Once
    • Coding Snacks
    • Linux User
Re: Good Folder Printer
« Reply #9 on: July 17, 2007, 04:21 PM »
There is a file manager that makes pretty directory printouts- I can't remember if it was FreeCommander or A43 or some other one, but it works well...

On the other hand, I have updated my own directory listing code:
1- download a2ps and stick it in your PATH somewhere.
2- download the PrintFile32 utility. It's a standalone "throw a postscript file at my printer" utility. Quite useful, really.
3- here's my batch code:
Code
@echo off
TITLE Preparing File Tree...
tree %1| a2ps - -1B -X ibm-cp437 -o %temp%\tree.ps
start c:\program files\printfile32\prfile32.exe /q %temp%\tree.ps
exit

Stick a shortcut in your "Send To..." folder, or hack your registry to have it pop up when you right-click a folder.

All children left unattended will be given a mocha and a puppy.

Original address: https://www.donationcoder.com/forum/index.php?topic=769.0