![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | Script to find media files... I wrote the following scrpt to find all media files and list them in order of largest to smallest. I use this on all my servers and have it generate an email to all admins so they can remove them. Music downloading is forbidden here. c: del output.txt date | out-file -Append output.txt Get-ChildItem \\servername\e$ -recurse -include *.mp3,*.wma,*.wmv,*.mov,*.mpg,*.ogg | sort length -descending | out-file -Append output.txt mail -smtpHost smtphub.choicepoint.net -PortNumber 25 -From help@charlesjones.com -To jasonm@charlesjones.com -Subject "Data1 large files and media" -Body "Attached is listing of the top 20 largest files on Data1 and all media" -AttachmentPaths C:\output.txt You must have the SMTP email CMDLET installed from here http://www.codeplex.com/PowerShellCX. It's free! |
My System Specs![]() |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Where do I find the name of the currently executing script | RickB | PowerShell | 3 | 05-10-2008 08:52 AM |
| Windows Script Host has no script engine for ".js" files | Stephan G. | Vista General | 9 | 04-24-2008 03:04 PM |
| script to find a certain info about a user | don5 | PowerShell | 6 | 02-05-2008 06:10 AM |
| Media center cannot find audio or video files | ashlito | Vista music pictures video | 4 | 01-12-2008 09:11 AM |
| Vista Media Centre cannot find any video files | Greg | Vista General | 1 | 05-18-2007 10:49 AM |