Thanks for taking time to answer my questions, and write that code on your phone, bet that was fiddly! Image may be NSFW.
Clik here to view.
Just a bit confused about that last line:
cmd /c "mklink /J `"$($junction.Key)`" `"$($junction.Value)`""
That works as is I assume?
That was the code I couldn't get to work on my PC. I just get the "You don't have permissions..." message, as I'm writing to ProgramFiles.
I am also wanting to create links in ProgramData, AppData, Documents.
Can I use this instead:
New-Item -ItemType Junction -Path `"$($junction.Key)`" -Target `"$($junction.Value)`"
Are the quote marks correctly placed?
EDIT: Doesn't work. Neither of the above works. Runs, but no Junctions created.
EDIT: Solved by removing the ` through out last line.
Thanks for the help Image may be NSFW.
Clik here to view.
Clik here to view.

Just a bit confused about that last line:
cmd /c "mklink /J `"$($junction.Key)`" `"$($junction.Value)`""
That works as is I assume?
That was the code I couldn't get to work on my PC. I just get the "You don't have permissions..." message, as I'm writing to ProgramFiles.
I am also wanting to create links in ProgramData, AppData, Documents.
Can I use this instead:
New-Item -ItemType Junction -Path `"$($junction.Key)`" -Target `"$($junction.Value)`"
Are the quote marks correctly placed?
EDIT: Doesn't work. Neither of the above works. Runs, but no Junctions created.
EDIT: Solved by removing the ` through out last line.
Thanks for the help Image may be NSFW.
Clik here to view.

Statistics: Posted by sl23 — Yesterday, 9:11 pm