mklink /J {SourceDirectory} {TargetDirectory}
The Source directory must NOT exist and the Target directory must. This is because the Source directory is created as a symbolic link to the hard directory
Here was my script:
mklink /J "C:\Src\repos\XxxRepo\bin\Debug\TheProduct.Plugins\ICMP" "C:\Src\repos\XxxRepo\bin\Debug\TheProduct.Service\Plugins\ICMP" mklink /J "C:\Src\repos\XxxRepo\bin\Debug\TheProduct.Plugins\RelayBoard" "C:\Src\repos\XxxRepo\bin\Debug\TheProduct.Service\Plugins\RelayBoard" mklink /J "C:\Src\repos\XxxRepo\bin\Debug\TheProduct.Plugins\SeveritySetter" "C:\Src\repos\XxxRepo\bin\Debug\TheProduct.Service\Plugins\SeveritySetter" mklink /J "C:\Src\repos\XxxRepo\bin\Debug\TheProduct.Plugins\SMTP" "C:\Src\repos\XxxRepo\bin\Debug\TheProduct.Service\Plugins\SMTP" mklink /J "C:\Src\repos\XxxRepo\bin\Debug\TheProduct.Plugins\WMI" "C:\Src\repos\XxxRepo\bin\Debug\TheProduct.Service\Plugins\WMI"
No comments:
Post a Comment