I am currently trying to make junctions in my Windows 10 filesystem and also need to delete a directory with process-locked files in it.
SysInternals seems to have 2 great packages in the form of
junction. I'd love to use them if only I could figure out how to install them. I have tried:
- Downloading the
junctionsource directly and using
./junction64.exe /install=agent(even though I don't know what that means, probably not wise really). This prints a promising message about the program to terminal but does not make it accessble from path.
- Using this article (which initially looked like a parting in the clouds) - I can download the suite but it does not work as shown, just provides
2 PowerShell scripts. When trying to run the (presumed) install script at
Set-ExecutionPolicy Bypass -Scope Process -Force | Powershell .\chocolateyInstall.ps1it comes up that a keyword "Install-ChocolateyZipPackage" is not recognised.
I am sure for such a ubiquitous tool that I am searching the nooks and the solution is hiding in plain sight, but I am not very experienced in package managers and thus I am getting a tad weary in this search
EDIT: Whilst the accepted answer below is valid for the question I have come to realise that I could have just used chocolatey for the entire process, as chocolatey quite rightly recognises it as a package:
choco info SysInternals to find available packages with this name and then
choco install <packageName>. All executables within SysInternals will be available from $Path