Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> "find the directory of the currently executing script"

Did you miss `$PSScriptRoot` ? Can piping that to split-path help you out?

Since PS 2.0 you got to write completely equal cmdlets in PS or .NET there's no different at all anymore.

Your link is dated 19 Jun 2007 which would be PS 1.0, 2 years before windows 7 came out. Were on 4.0 now 6 years later maybe it's time for another look.

I feel your reference experience with PS is out of date. You get to grips with how the get-help platform works PS is amazingly consistent. Where it isn't is busting out .NET.



Hmmm, cool! Indeed my experience is 3-ish years old. I'll give it another chance next time I need something like it! Thanks for pointing this out.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: