Posted by: Preetam | March 20, 2008

PS FK:\> ls * -Exclude *.tmp | sort-object length -des | Select-Object -First 10 name,length

New-PSDrive -Name FK -PSProvider Filesystem -Root D:\PowerShell\ebooks\Workshop1\Files

PS FK:\> ls * -Exclude *.tmp | sort-object length -des | Select-Object -First 10 name,length

Name                                                                                                             Length
—-                                                                                                             ——
hilfe.txt                                                                                                       2578212
Scripting with PowerShell.pptx                                                                                  1589414
Picking a Store Location.doc                                                                                     194560
Manager-Employee Conduct.doc                                                                                     194560
Managing Your Store.doc                                                                                          193024
Reviewing Employees.doc                                                                                          193024
AW Administration Best Practices.doc                                                                             192512
Corporate Management Guidelines.doc                                                                              192000
Mentoring New Managers.doc                                                                                       185344
Equipment Acquisition Training.ppt                                                                               169472

 

PS FK:\> ls * -Exclude *.tmp | sort-object name | Select-Object -First 10 name,length

Name                                                                                                             Length
—-                                                                                                             ——
Annual Meeting – Finance.ppt                                                                                     108032
Annual Meeting – Keynote.ppt                                                                                      65024
Annual Meeting – Travel.ppt                                                                                       43520
Annual Revenue Report.xls                                                                                         32768
arrow 0.png                                                                                                        1806
arrow 1.png                                                                                                        1946
arrow 2.png                                                                                                        2180
arrow 3.png                                                                                                        2371
arrow 4.png                                                                                                        2604
arrow 5.png                                                                                                        2756


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

Categories

%d bloggers like this: