0% found this document useful (0 votes)
88 views

Powershell Indexing Script

Powershell Indexing script for making a txt file containing the names on all files contained in a folder

Uploaded by

Eoin Dolan
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
88 views

Powershell Indexing Script

Powershell Indexing script for making a txt file containing the names on all files contained in a folder

Uploaded by

Eoin Dolan
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

gci = get-childitem $target="Target directory" Developing an index of all files within in a folder (including sub-folders) gci $target -recurse

| select-object "lastwritetime","Name" | sort-object "last writetime" -descending | out-file $target\index.txt

develop an index for the files contained with the target directory (ONLY) gci $target | select-object "lastwritetime","Name" | sort-object "lastwritetime " -descending | out-file $target\index.txt

You might also like