Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Powershell: edit profile error "does not exist"

$
0
0

Hi,

I'm trying to edit my powershell profile (started x86 since I need that one) but I get errors, pls advise.
The path does not exist indeed but why does it show it then?

J.

PS K:\> $profile
C:\Users\jhoedt\Documents\WindowsPowerShell\Microsoft.PowerShellISE_profile.ps1

PS K:\> cd $profile
cd : Cannot find path 'C:\Users\jhoedt\Documents\WindowsPowerShell\Microsoft.PowerShellISE_profile.ps1' because it does not exist.
At line:1 char:1
+ cd $profile
+ ~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\jhoedt...ISE_profile.ps1:String) [Set-Location], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetLocationCommand

 

Jan Hoedt


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>