I am logged in Windows 7 (Home Premium) as user which is an administrator. When I open
mklink foo bar says:
You do not have sufficient priviledge to perform this operation.
I know I can run
cmd.exe as administrator (via Ctrl+Shift+Enter), but I would like to create symlinks inside a bigger program (using the win32 API) which will not be running as administrator.
What is the way to enable symlinks for programs running as user (which has administrative privileges), but running the program normally, without explicit elevation?