Discussion Locked

Batch file

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Want to print a list of directories and sub-directroies in Win XP, printer is a USB connection so I figure I will need a batch file to do the job.
Not sure of the wording of the file

3 replies

by thechas

XP does not support many of the old DOS commands used in batch files.

Why not download a 3rd party utility that does the job?

1 is Z-Tree. www.ztree.com
This file manager is an update of the popular X-Tree DOS file manager. Included in the functions is a tree print.

You can look through and try the file managers at www.nonags.com There are several that offer more functions than Windows Explorer.

Chas

by thechas

I just checked another program I have.
Power Desk has an option to print a tree.

You can download a free version from www.v-com.com

I have not tried version 5 yet, so I'm not sure that it has the same functions.

As far as creating a program to print your folder tree, you might want to look into either dot-net, or visual basic.

There may even be code at Tech Republic's sister site www.builder.com.com

Chas

by chris910

You dont even need a batch file. Open a command window. Type Dir c: /A /B /O /S > C:\test.txt and then enter. Wait for a fresh prompt to be returned, Then open the file C:\test.text in your favorite word processor and print from there.

One step further:
To find all hidden files with all of their statistics (size, date, owner, etc)
type Dir c: /A:h /O /S > C:\test.txt

Dir /? will display the information to tweek the above commands to get exactly what you want.

The redirection command > sends the output of the preceding command to the file name, Port name (LPT1, COM1, CON, PRN). If you use >> it will append the curent data to the end of an existing file.

This discussion is closed to new replies.