User Tools

Site Tools


dev:windows

Table of Contents

file links

  • junction: i forget, for directories.
  • symbolic link: like a shortcut file, except it doesn't work. never use symbolic link.
  • hard link: link

if you delete the hard link, it doesn't take the source with it.

how2

  • -Path is where the “link” is; i.e., that's where the pointer itself lives.
  • -Target is where the link's target is; i.e., that's where the pointer is targeted. (don't say source, you'll only get confused)

have to be admin. :(

  New-Item -ItemType HardLink -Path 'C:\Users\agrey\source\repos\api.platform.claims\api.platform.claims\Properties\launchSettings.json' -Target './launchSettings.json'

ssh -> powershell

pull out powershell, then:

New-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" `
    -Name DefaultShell `
    -Value "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" `
    -PropertyType String `
    -Force
dev/windows.txt · Last modified: 2023/10/02 04:16 by adam