I need to make a shortcut for my application and the shortcut needs to have the same icon, so no bat files come into consideration instead of the shortcut. I also want a native windows solution or .NET 5.0 solution, not a third party program, I want to be as low to the source as possible.
I've tried mklink but it does not provide an option to set shortcut's "Start in:" directory which is crucial for my app for which I need to make a shortcut.
This is what I made for myself:
I don't like the PowerShell method because it briefly shows the window, and I would like to be able to execute vbscript inline, not through file, don't know how.