Tasty Technology! By Tim Scarfe. Tuesday, November 14, 2006 - 11:24 [#]
AutomationI love rich user experiences as much as the next guy but the problem is their inherent manual, sequential process. If any single item in the process takes a long period of time then it blocks you (the user) from being able to do other things. Like sleeping! Enter Powershell and a raft of good quality command like tools for everything ranging from parity checking/repairing, RAR compression, downloading files, copying files etc. Here was my last nightly powershell script J #move gymnastics vids over to f to save space on g #this should result in 18gig to play with on g
robocopy 'G:\Gymnastics Videos' 'F:\Gymnastics Videos' /MOV /LOG:G:\gymtransferlog.txt /S
#verify all the downloads
sl "F:\transfers\newsgroups\p\" gci | where { $_.Name.EndsWith(".par2") } | foreach-object{ &'C:\bin\par2cmdline-0.4-x86-win32\par2.exe' r $_.FullName }
#extract some things we have space for
& 'C:\Program Files\WinRAR\UnRAR.exe' x "Armin_van_Buuren_-_A_State_of_Trance_273_(DI.FM)_2006-11-02.part01.rar" "G:\MP3\!MP3_ForApproval" & 'C:\Program Files\WinRAR\UnRAR.exe' x "Armin_van_Buuren_-_A_State_of_Trance_274_(DI.FM)_2006-11-09-.part01.rar" "G:\MP3\!MP3_ForApproval"
#we got a bunch of oct trance singles in seperate rar files
gci | where{ $_.LastWriteTime -gt [DateTime]::Parse("13/11/2006 23:06:00") -and $_.LastWriteTime -lt [DateTime]::Parse("13/11/2006 23:33:00") -and $_.Name.EndsWith(".rar") } | foreach-object{ & 'C:\Program Files\WinRAR\UnRAR.exe' x $_.FullName "G:\MP3\!MP3_ForApproval\Trance Singles Oktober 2006 (Vinyl,CDM,CDS,CDR,WEB)" } & 'C:\Program Files\WinRAR\UnRAR.exe' x "house okt deel 1.part001.rar" "G:\MP3\!MP3_ForApproval\house okt deel 1" & 'C:\Program Files\WinRAR\UnRAR.exe' x "House okt deel 2.part001.rar" "G:\MP3\!MP3_ForApproval\house okt deel 2"
#not sure if this little lot got par checked (all 8GB of it...)
&'C:\bin\par2cmdline-0.4-x86-win32\par2.exe' r "F:\transfers\newsgroups\p\Future Of Trance\MorXMXPX3X0001.par2" Copyright Tim Scarfe © 1999-2006. All rights reserved. |