Re: txt file of search
From: David Candy (david_at_mvps.org)
Date: 09/14/04
- Next message: anonymous_at_discussions.microsoft.com: "innstall ink cartridge"
- Previous message: Joakim Hellström: "Re: can boot xp"
- In reply to: Ellen: "txt file of search"
- Next in thread: Ellen: "Re: txt file of search"
- Reply: Ellen: "Re: txt file of search"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 15 Sep 2004 04:42:12 +1000
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
-- ---------------------------------------------------------- War on the Pachyderms Terrorists http://www.counterpunch.org/wilson09012004.html "Ellen" <anonymous@discussions.microsoft.com> wrote in message news:0d1701c49a88$74495810$a601280a@phx.gbl... > Hello, > I'd like a list of files with a jpg extension on network > drive, which happens to be V. I'd like the search to > include subfolders as well. Is there a way to save the > search as a text file? > > Thank you in advance, > Ellen
- Next message: anonymous_at_discussions.microsoft.com: "innstall ink cartridge"
- Previous message: Joakim Hellström: "Re: can boot xp"
- In reply to: Ellen: "txt file of search"
- Next in thread: Ellen: "Re: txt file of search"
- Reply: Ellen: "Re: txt file of search"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|