Printing a list of files on G Drive



Roxy
07-09-2005, 11:44 PM
Hello. I'm trying to sort out a mess of a shared drive, and want to print a
list of what is on that drive. Does anyone know how I can do this? I've
tried various things, but none of them are working.

Cheers, and many thanks.

Roxy

Bruce Chambers
07-09-2005, 11:44 PM
Roxy wrote:
> Hello. I'm trying to sort out a mess of a shared drive, and want to print a
> list of what is on that drive. Does anyone know how I can do this? I've
> tried various things, but none of them are working.
>
> Cheers, and many thanks.
>
> Roxy


From the command prompt (Start > Run > Cmd.exe), simply change to
the desired directory and type "dir > filelist.txt" or "dir > lpt1,"
just as you used to do in DOS. Any of the switches for the DIR
command (type "dir /?") will work with this command, if you wish to
modify the output. You can then subsequently edit the resulting text
file using NotePad, WordPad, Word, etc.

Alternatively:

HOW TO Add a Print Directory Feature for Folders in Windows XP
http://support.microsoft.com/?kbid=321379


--

Bruce Chambers

Help us help you:
http://dts-l.org/goodpost.htm
http://www.catb.org/~esr/faqs/smart-questions.html

You can have peace. Or you can have freedom. Don't ever count on having
both at once. - RAH

NoNoBadDog!
07-09-2005, 11:44 PM
The easiest way is to click on STAR > RUN > and type CMD in the Run Box.

When the Command Prompt window opens, type G: and hit enter; this puts the
dialog at the root of the G drive.
Next, type the following at the prompt:

dir /s >directory.txt
let it run, and then close the Command Prompt Window. There will now be a
text file on the root of the G drive called directory.txt. You now have a
list of all files on the drive.

Bobby



"Roxy" <Roxy@discussions.microsoft.com> wrote in message
news:1F57153F-B436-4DDA-9720-E4D5D570FEC4@microsoft.com...
> Hello. I'm trying to sort out a mess of a shared drive, and want to print
> a
> list of what is on that drive. Does anyone know how I can do this? I've
> tried various things, but none of them are working.
>
> Cheers, and many thanks.
>
> Roxy

Plato
07-09-2005, 11:45 PM
=?Utf-8?B?Um94eQ==?= wrote:
>
> Hello. I'm trying to sort out a mess of a shared drive, and want to print a
> list of what is on that drive. Does anyone know how I can do this? I've
> tried various things, but none of them are working.

http://no-nonsense-software.com/download.shtml
http://www.karenware.com/powertools/ptdirprn.asp





--
http://www.bootdisk.com/

David Candy
07-09-2005, 11:45 PM
You can drag a folder from (say explorer) on to the file. You can put it in
Sendto, type sendto in Start Run, copy the file into the sendto folder, then
right click the folder you want to list, Send To, PrintDetailsAppend.
Sending To simulates a drag and drop.

Then import the file into excel, delete the columns you don't want (as most
are blank for any individual type of file, eg MP3 don't have a Date Picture
Taken and JPEGs don't have a Genre property), sort it on description and
delete the files you don't want. That will leave just the properties and
files you want. This is the most general purpose way I can think of to meet
everyones needs.

A drive is the same as a folder for these purposes.

Attached is a VBScript that generate the shell properties (what you see or
could see in Explorer). It is a 51 column csv. There is about 40 properties
on a standard XP and I've allowed about 10 columns for custom properties
that applications may add. Those whove seen it before this one automatically
finds the desktop rather than editing the script. To use, drop a folder on
it or place in Sendto and send a folder to it. If using the for command
(below) you must run it once whereever you put it so it can be found.

To do sub folders type in a command prompt in the folder that you want to
start in (It also does the parent folder - a quirk of For)
for /r %A in (.) do start "" /w "PrintDetailsAppend" "%~dpA"

It creates a file on the desktop called Folder Property List.txt

Copy the following line into a text document and rename it to
PrintDetailsAppend.vbs

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

"Roxy" <Roxy@discussions.microsoft.com> wrote in message
news:1F57153F-B436-4DDA-9720-E4D5D570FEC4@microsoft.com...
> Hello. I'm trying to sort out a mess of a shared drive, and want to print
a
> list of what is on that drive. Does anyone know how I can do this? I've
> tried various things, but none of them are working.
>
> Cheers, and many thanks.
>
> Roxy


Printing a list of files on G Drive