Does @SYMLINK work?

May 20, 2008
11,192
94
Syracuse, NY, USA
Code:
c:\users\vefatica\appdata\local\microsoft\windowsapps> d o*
2019-06-24  12:21     <SYMLINK>    outlook.exe [C:\Users\vefatica\AppData\Local\Microsoft\WindowsApps\outlook.exe]

c:\users\vefatica\appdata\local\microsoft\windowsapps> echo %@symlink[.\outlook.exe]
ECHO is OFF
 
May 20, 2008
11,192
94
Syracuse, NY, USA
@JUNCTION too.
Code:
c:\users\vefatica\appdata\local\packages\microsoft.office.desktop_8wekyb3d8bbwe\localcache\roaming\microsoft\windows\start menu\programs> d
2019-06-24  11:45    <JUNCTION>    Startup [C:\Users\vefatica\AppData\Local\Packages\Microsoft.Office.Desktop_8wekyb3d8bbwe\LocalCache\Roaming\Microsoft\Windows\Start Menu\Programs\Startup]

c:\users\vefatica\appdata\local\packages\microsoft.office.desktop_8wekyb3d8bbwe\localcache\roaming\microsoft\windows\start menu\programs> echo %@junction[Startup]
Startup
 

rconn

Administrator
Staff member
May 14, 2008
12,252
144
Code:
c:\users\vefatica\appdata\local\microsoft\windowsapps> d o*
2019-06-24  12:21     <SYMLINK>    outlook.exe [C:\Users\vefatica\AppData\Local\Microsoft\WindowsApps\outlook.exe]

c:\users\vefatica\appdata\local\microsoft\windowsapps> echo %@symlink[.\outlook.exe]
ECHO is OFF

Works fine here. Are you sure you have the right permissions?
 
May 20, 2008
11,192
94
Syracuse, NY, USA
Do I need anything more than elevated?
Code:
c:\users\vefatica\appdata\local\microsoft\windowsapps> echo %_elevated
1

c:\users\vefatica\appdata\local\microsoft\windowsapps> d o*
2019-06-24  12:21     <SYMLINK>    outlook.exe [C:\Users\vefatica\AppData\Local\Microsoft\WindowsApps\outlook.exe]

c:\users\vefatica\appdata\local\microsoft\windowsapps> echo %@symlink[outlook.exe]
ECHO is OFF

2375
 
May 20, 2008
11,192
94
Syracuse, NY, USA
You don't need to be elevated to run @symlink or @junction. You only need permission to query the file or directly. If it was created by the system, you probably don't.

Are you having problems with all symlinks on your system? Is MKLINK working?
MKLINK /@SYMLINK seems OK. Supposedly, I have full control over that SYMLINK and the directory it's in. I do not have full control over the target file.