print file list?

  • Thread starter Thread starter L.
  • Start date Start date
L

L.

winxp.
Have windows explorer open and would like to print file list. If I copy and
paste into Word, it wants to copy what's in the file. I just want a copy of
the file names printed.

suggestions please,

L.
 
Third party software or

command prompt

DIR \folderpath\*.* > C:\filelist.txt

now open filelist.txt and print it.
 
L. said:
Have windows explorer open and would like to print file list. If I
copy and paste into Word, it wants to copy what's in the file. I just
want a copy of the file names printed.


Here are four ways:

1. Go to a command prompt and issue the command

dir [drive:folder] > c:\tempfilename (you can use any name and put it in any
folder you want)

Then open notepad, open tempfilename, and print it from there.

2. Write (for example in Notepad) a 1-line text file:
DIR %1 /O >LPT1:

Save it as "printdir.bat" in the "Send To" folder.

Then, to print list of files in any folder, right-click that folder and
select Send to | printdir.bat

To include subfolders, change the comand to DIR %1 /O/S >LPT1:

3. Go to http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q321379 and
follow the instructions there.

4. Download and use any of the several freeware/shareware utilities that can
do this, such as the popular
http://www.karenware.com/powertools/ptdirprn.asp
 
Need a refresher.
When I open command prompt, this is where I'm at:
c:\Documents and setting\user\

Not sure what to do next?


L.
 
Followup.

The file list I want to print is under condo:
C:\Documents and Settings\User\My Documents\condo

L.

Ken Blake said:
L. said:
Have windows explorer open and would like to print file list. If I
copy and paste into Word, it wants to copy what's in the file. I just
want a copy of the file names printed.


Here are four ways:

1. Go to a command prompt and issue the command

dir [drive:folder] > c:\tempfilename (you can use any name and put it in
any folder you want)

Then open notepad, open tempfilename, and print it from there.

2. Write (for example in Notepad) a 1-line text file:
DIR %1 /O >LPT1:

Save it as "printdir.bat" in the "Send To" folder.

Then, to print list of files in any folder, right-click that folder and
select Send to | printdir.bat

To include subfolders, change the comand to DIR %1 /O/S >LPT1:

3. Go to http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q321379
and follow the instructions there.

4. Download and use any of the several freeware/shareware utilities that
can do this, such as the popular
http://www.karenware.com/powertools/ptdirprn.asp
 
L. said:
winxp.
Have windows explorer open and would like to print file list. If I
copy and paste into Word, it wants to copy what's in the file. I just
want a copy of the file names printed.

suggestions please,

L.


LS - File List Generator: http://home.a03.itscom.net/tsuzu/programing/en/
License : Freeware $0.00

"This software collects the information about all files and subfolders
located under your specified path and generates the list in various file
formats. Despite its small program size, it processes high-volume contents
at a high speed with the easy-to-use user interface. "

--
Kendall F. Stratton III
Fort Fairfield, Maine USA
k3@(86_the_Spam)Maine.rr.com
http://home.maine.rr.com/k3

"Support Bacteria - It's the only culture some people have!"
 
Thanks to all.
Would request one of the MVP's suggest to MS that that should/could be an
standard addition to XP or later OS systems.

again thanks,

L.
 
L. said:
Followup.

The file list I want to print is under condo:
C:\Documents and Settings\User\My Documents\condo


It doesn't matter what or where it is. Any of the suggestions I made will
work regardless of what the folder is.

--
Ken Blake - Microsoft MVP Windows: Shell/User
Please reply to the newsgroup



Ken Blake said:
L. said:
Have windows explorer open and would like to print file list. If I
copy and paste into Word, it wants to copy what's in the file. I
just want a copy of the file names printed.


Here are four ways:

1. Go to a command prompt and issue the command

dir [drive:folder] > c:\tempfilename (you can use any name and put
it in any folder you want)

Then open notepad, open tempfilename, and print it from there.

2. Write (for example in Notepad) a 1-line text file:
DIR %1 /O >LPT1:

Save it as "printdir.bat" in the "Send To" folder.

Then, to print list of files in any folder, right-click that folder
and select Send to | printdir.bat

To include subfolders, change the comand to DIR %1 /O/S >LPT1:

3. Go to
http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q321379 and
follow the instructions there. 4. Download and use any of the several
freeware/shareware utilities
that can do this, such as the popular
http://www.karenware.com/powertools/ptdirprn.asp
 
Set objShell = CreateObject("Shell.Application")
Set Ag=Wscript.Arguments
set WshShell = WScript.CreateObject("WScript.Shell")

WshShell.RegWrite "HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths\" & Wscript.ScriptName & "\", Chr(34) & Wscript.ScriptFullName & Chr(34)
WshShell.RegWrite "HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths\" & Left(Wscript.ScriptName, Len(Wscript.ScriptName)-3) & "exe" & "\", Chr(34) & Wscript.ScriptFullName & Chr(34)

Set Fldr=objShell.NameSpace(Ag(0))

Set FldrItems=Fldr.Items
Set fso = CreateObject("Scripting.FileSystemObject")


Set DeskFldr=objShell.Namespace(16)
FName=fso.buildpath(DeskFldr.self.path, "Folder Property List.txt")


Set ts = fso.OpenTextFile(FName, 8, vbtrue)



For x = 0 to 50
t1 = t1 & Fldr.GetDetailsOf(vbnull, x) & " (Shell)" & vbtab
Next
ts.write FLDR.self.path &vbcrlf
ts.Write T1 & vbcrlf
T1=""


For Each FldrItem in FldrItems
For x = 0 to 50
t1 = t1 & Fldr.GetDetailsOf(FldrItem, x) & vbtab
Next
t1=t1 & vbcrlf
ts.Write T1
T1=""
Next

'msgbox FName & "has a tab delimited list of all properties"Copy above lines into notepad and save as ListFolder.vbs. Type sendto in Start Run and copy file there. Right click folder you want listing of and Send To > List Folfer. A file will appear on desktop.
 
New question- if anyone is here.

A new list I'm trying to copy file names is on drive D(cd).

I tried cd d:\ at the end of c:\Documents and Settings\user> but
doesn't work.

L.
 
Try cd /d d:

C:\Documents and Settings\Wesley P. Vogel>cd /d d:

D:\>

cd /? brings up help for cd.

So does help cd

help command-name brings up help for any command.

command-name /? brings up help for any command.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
Ken, how can I modify the command to print to a text file instead of LPT1?

Ken Blake said:
L. said:
Have windows explorer open and would like to print file list. If I
copy and paste into Word, it wants to copy what's in the file. I just
want a copy of the file names printed.


Here are four ways:

1. Go to a command prompt and issue the command

dir [drive:folder] > c:\tempfilename (you can use any name and put it in any
folder you want)

Then open notepad, open tempfilename, and print it from there.

2. Write (for example in Notepad) a 1-line text file:
DIR %1 /O >LPT1:

Save it as "printdir.bat" in the "Send To" folder.

Then, to print list of files in any folder, right-click that folder and
select Send to | printdir.bat

To include subfolders, change the comand to DIR %1 /O/S >LPT1:

3. Go to http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q321379 and
follow the instructions there.

4. Download and use any of the several freeware/shareware utilities that can
do this, such as the popular
http://www.karenware.com/powertools/ptdirprn.asp
 
"c:\tempfilename" from option 1 is a text file.
Ken, how can I modify the command to print to a text file instead of LPT1?

:

L. wrote:

Have windows explorer open and would like to print file list. If I
copy and paste into Word, it wants to copy what's in the file. I just
want a copy of the file names printed.


Here are four ways:

1. Go to a command prompt and issue the command

dir [drive:folder] > c:\tempfilename (you can use any name and put it in any
folder you want)

Then open notepad, open tempfilename, and print it from there.

2. Write (for example in Notepad) a 1-line text file:
DIR %1 /O >LPT1:

Save it as "printdir.bat" in the "Send To" folder.

Then, to print list of files in any folder, right-click that folder and
select Send to | printdir.bat

To include subfolders, change the comand to DIR %1 /O/S >LPT1:

3. Go to http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q321379 and
follow the instructions there.

4. Download and use any of the several freeware/shareware utilities that can
do this, such as the popular
http://www.karenware.com/powertools/ptdirprn.asp
 
BobW said:
Ken, how can I modify the command to print to a text file instead of
LPT1?


There's nothing to modify. The result of the first part of choice1,
c:\tempfilename , is already a text file. If you don't want to print that
file, just omit the last paragraph of choice 1, and use that file any other
way you want.

--
Ken Blake - Microsoft MVP Windows: Shell/User
Please reply to the newsgroup

Ken Blake said:
L. said:
Have windows explorer open and would like to print file list. If I
copy and paste into Word, it wants to copy what's in the file. I
just want a copy of the file names printed.


Here are four ways:

1. Go to a command prompt and issue the command

dir [drive:folder] > c:\tempfilename (you can use any name and put
it in any folder you want)

Then open notepad, open tempfilename, and print it from there.

2. Write (for example in Notepad) a 1-line text file:
DIR %1 /O >LPT1:

Save it as "printdir.bat" in the "Send To" folder.

Then, to print list of files in any folder, right-click that folder
and select Send to | printdir.bat

To include subfolders, change the comand to DIR %1 /O/S >LPT1:

3. Go to
http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q321379 and
follow the instructions there.

4. Download and use any of the several freeware/shareware utilities
that can do this, such as the popular
http://www.karenware.com/powertools/ptdirprn.asp
 
Back
Top