quick script for new files

new files for old, new files for old.  But how many are new?

$counter = 0 #not necessary especially if i declare counter as [int]

get-childitems T:\* -recurse| # the pipe means i don’t need a 
                                                   continuation to get to the next line
foreach-object { if ([datetaime]$_.lastwritetime) -gt “2013-09-29”){$_.fullname; $counter++}}|
out-file -filepath C:\data.txt -append

$counter # display the count

This entry was posted in Uncategorized. Bookmark the permalink.