Last active
November 24, 2019 03:32
-
-
Save JonasGao/911f38afd5d730a4aebed4cde943bb36 to your computer and use it in GitHub Desktop.
New link data to new version vscode, and make target vscode to current use
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param( | |
[string]$VSCode | |
) | |
if (!$VSCode) { | |
Write-Output "Please specify a VSCode(dir)" | |
exit(1) | |
} | |
Write-Output "Remove old [mark]" | |
Remove-Item mark -Force | |
Write-Output "Copy [$VSCode] to [mark]" | |
Copy-Item "$VSCode" -Destination "mark" -Recurse | |
Write-Output "Will link mark-data to [mark]" | |
New-Item -ItemType Junction -Path "mark\data" -Value "mark-data" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment