Save search results to spreadsheet

0

I have a Windows Home Server with about 5,000 files that were corrupted and lost from multiple a hard drive failure. Before I blow them away so they're not included in future backups I want to get a listing of them.

How can I save a listing of all files with the *.wlx extension sitting on a \server\photos share? Can I export that list to a spreadsheet?

Pangea

Posted 2010-08-01T01:29:40.363

Reputation: 372

Answers

1

From a command prompt (cmd from RUN) do a

cd\server\photos
dir *.wlx > corrupt.txt

That will output all those filenames to corrupt.txt in that same folder.

JNK

Posted 2010-08-01T01:29:40.363

Reputation: 7 642

Your command helped but only got the root directory. Powershell offered me a little more nuance.

What ended up helping me the most was this command: Get-ChildItem -recurse \server\photos -include *.wlx > corrupt – Pangea – 2010-08-02T01:21:54.760

@JNK forgot the /s parameter to dir, but PowerShell is better, of course. – Jay Bazuzi – 2011-07-07T06:08:00.350