Moving away from $HOME

rated by 0 users
This post has 1 Reply | 1 Follower

Not Ranked
Posts 2
Mike Nelson Posted: 04-25-2012 10:28 AM

My Windows 7 Laptop came with the PowerShell $HOME set to a network drive (Z:\).  I want to permanently change this to be my Dropbox folder (C:\Users\username\Dropbox).  How do I go about that?

Not Ranked
Posts 2

My solution would be:

Add the following line to your profile.ps1 script. (should be in your powershell folder)

$env:homepath = "C:\Users\username\Dropbox"

Page 1 of 1 (2 items) | RSS
Copyright 2012 PowerShell.com. All rights reserved.