Skip to content

Instantly share code, notes, and snippets.

@jaraco
Created December 31, 2017 18:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaraco/3b75396b4fc51f863a9434cec446cd95 to your computer and use it in GitHub Desktop.
Save jaraco/3b75396b4fc51f863a9434cec446cd95 to your computer and use it in GitHub Desktop.
PS C:\users\jaraco> rmdir foo
PS C:\users\jaraco> New-Item -Path bar -ItemType SymbolicLink -Value foo
New-Item : Cannot find path 'C:\users\jaraco\foo' because it does not exist.
At line:1 char:1
+ New-Item -Path bar -ItemType SymbolicLink -Value foo
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\users\jaraco\foo:String) [New-Item], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.NewItemCommand
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment