logo

Powershell: копирование, упорядочивание




h_323

Powershell: копирование, упорядочивание


Tags: windows powershell scripting

Published : 4 months, 1 week ago (Tue, 15 Jul 2008 01:49:34 PDT)
Searched: powershell
http://h-323.livejournal.com/13888.html  0 links
Related posts

нашли все кмл-файлы и вывели их в порядке возрастания даты последней записи

PS> ls d:\ *.kml -recurse | sort LastWriteTime

то же самое, в убывающем порядке
PS> ls d:\ *.kml -recurse | sort LastWriteTime - descending

последний скачанный файл в папке с подкастами
PS> (ls 'D:\my\My Received Podcasts\Svobodanewsru' | sort LastWriteTime -descending)[0]

скопировать последний скачанный файл из папки подкастов на флешь
PS> cpi -path 'D:\my\My Received Podcasts\Svobodanewsru\*' -filter (ls 'D:\my\My Received 
Podcasts\Svobodanewsru' | sort LastWriteTime -des)[0] -destination f:

то же самое в случае, когда мы уже находимся в нужной папке
PS D:\my\My Received Podcasts\Business News (Russian)> cpi (ls | sort LastWriteTime -des)[0] f:

h_323

More results for "powershell"


This is cached version of livejournal post retrieved by LjSEEK on 2008-07-20 07:31:02 . Post may have changed since that time. Click here for actual post version. LjSEEK.COM is not affiliated with author of this post and is not responsible for its content.
These search terms have been highlighted: powershell
Disable Highlighting
h_323's Search:
Get your own code!
Copyright © 2005,2006 ljseek.com This service is not affiliated with LiveJournal.com
Design by Steorra.com