One-Liner: Getting My Documents and Other Special Folders

I have roaming profiles, which is great until I need to reference stuff in my Documents folder.  Sure, I can hardcode \\ProfilerServer10\Mydocs2\timdunn\My Documents into my script, but I want to make my scripts more reusable by my team members.  The closest I’ve been able to find is Split-Path –Parent –Path (Split-Path –Leaf –Path $Profile) There’s…

0