From c++ i create a shortcut link for an executable file. It works fine but if the exetuable folder has changed path the link is not workable anymore.(it pops the classic search for the missing file mannually).
If i create a shorcut link from windows by just dragging the executable file to the path i want to create the link and then change folder paths it still finds the executable and updates the paths of the shortcut link without manually search or anything like this.
How can i do that from c++ too ? i tried using arguments but arguments i guess is only for use from command prompt and doesnt update the links just by running the shortcut link.
Here is a link on how i did it in c++ How to programmatically create a shortcut using Win32