Brin
New Member
Fortran Programmer
Posts: 3
|
Post by Brin on Mar 5, 2005 15:27:51 GMT
I'm running WXP, and would like to be able to print off a directory listing, as simply as posible. I have tried going into DOS, then listing, and the trying to copy and paste, but this fails.
Is there a standard print utility that I dont know about ?
I know there is some sort of page capture, then you can print this, but I would like something simpler than that.
I would just like to be able to cut and paste into notepad if posible, or even create a directory listing and output it directly to a .txt file.
Example
a.jpg 28kb JPEG Image 1/1/2001 19:00 b.jpg 58kb JPEG Image 2/2/2003 21:00
Grateful for any help
|
|
|
Post by NHH on Mar 5, 2005 18:01:30 GMT
Hi Brin.. In the command prompt you can pipe any command output to a port or a text file quite simply. ..say if your printer is plugged into the LPT1 printer port you can type something like dir *.jpg /on > lpt1, this command will list all jpg files in the current directory, sort them by file name (the '/on' bit) and instead of showing the results on screen, the list will be piped to the LPT1 port. Although I have tried in the past piping to my usb printer by doing a ... > dot4_001 to no success so USB printer ports maybe a different story. You can do the same to a text file e.g. dir *.jpg /on > myjpgs.txt, the text file will be created in whatever folder you are in in the command prompt. The only thing is that the filenames will be on the right of the dates, not on the left as per your example. You can cut out the dates & times of the files by adding a /b switch.. e.g. dir /b /on > files.txt, this example will just create a list of all file names in the current directory sorted in alphabetical order and put it in a text file called 'files.txt'. To get more help for the dir command just type dir /? at the command prompt. If your'e after creating a prettier list in HTML format there's a handy little free program called Directory Lister which with do just that.
|
|
|
Post by Thank you on Mar 6, 2005 13:56:57 GMT
Thankyou, I just knew that there was something in dos that was the vms equivelent of /out=b.tmp
|
|