C
Chuck
I have been trying to create a command that will allow me
to print a directory's contents as a text file. I had
something similar in Windows98 but can't find the
instructions. In searching, I found and made one that
allows me to right-click on a file in Explorer and print
its contents to the printer, but not to a text file. I
seem to recall that the one I used under 98 created a
file with a .prn extention in the directory in which I
right-clicked.
Instructions I found for doing it that don't work are:
C:\command.com /c dir > dir.txt
I guess it doesn't work because apparently XP has no
command.com.
A manual one that works at the dos prompt is:
C:\>dir c:\folderpath > c:\folderlist.txt
where folderpath is the name of the folder whose contents
I want to print and folderlist.txt is the name of the
created text file with the folder's contents listed in it.
I would rather have it automated so that all I have to do
is right click on the directory in explorer. Does anyone
know how to do this in XP?
Chuck
to print a directory's contents as a text file. I had
something similar in Windows98 but can't find the
instructions. In searching, I found and made one that
allows me to right-click on a file in Explorer and print
its contents to the printer, but not to a text file. I
seem to recall that the one I used under 98 created a
file with a .prn extention in the directory in which I
right-clicked.
Instructions I found for doing it that don't work are:
C:\command.com /c dir > dir.txt
I guess it doesn't work because apparently XP has no
command.com.
A manual one that works at the dos prompt is:
C:\>dir c:\folderpath > c:\folderlist.txt
where folderpath is the name of the folder whose contents
I want to print and folderlist.txt is the name of the
created text file with the folder's contents listed in it.
I would rather have it automated so that all I have to do
is right click on the directory in explorer. Does anyone
know how to do this in XP?
Chuck