View Single Post
Old 08-31-2007   #8 (permalink)
Jacques Barathon [MS]


 
 

Re: Need help with .CreationTime

"BatchMan" <BatchMan@xxxxxx> wrote in message
news:29B13538-5990-40CF-80FC-E949C21F45E4@xxxxxx
Quote:

> Thanks Arnaud. On my machine, a sleep time of 15 seconds works, but 14
> seconds does not. I didn't know if that would be true for everyone else
> so I
> just changed it to 30.
>
> This isn't the first time inside of a week that I've run into a show
> stopping problem converting my existing batch programs to PowerShell
> (anyone
> know how to get a .weekofyear property from a datetime value?). I
> *really*
> want to fall madly in love with PS but I don't think she feels the same
> way....
Re: the creation time issue, I don't think this is a problem with
PowerShell. See Raymond Chen's blog on file system tunnelling which might at
least explain why you get a "fake" creation time:

http://blogs.msdn.com/oldnewthing/ar...15/439261.aspx

With that said, and now that Kiron has also showed you how to easily obtain
the week of year property, you should be packing for your honey moon! :-)

Jacques

My System SpecsSystem Spec