Find all PDF Files and Export to a CVS File –Powershell



 $myexport="c:\temp\mypdffiles.csv"
 $mypath="\\server1\ftpfolder\ftp.mycompany.com\users"
Get-ChildItem -Path $mypath  -Filter *.pdf -Recurse  -File -EA 0 | Select DirectoryName, Name,LastWriteTime,Length  | Export-CSV  $myexport


 
Advertisements


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s