While developing my product, my test device has several versions of the application installed at the same time. However, in order to get the absolute paths that my application is using to work, I need to switch out or rename the folders so that the version I want to test has the right path, say
C:\Program Files\My Company\My App\My App.exe. I've made a shortcut that targets this path, but if this shortcut is opened when none of the versions currently have that path then the shortcut will automatically update itself, thinking the file has moved permanently. This caused silent failures until I discovered what was happening. I didn't know this was a feature of Windows shortcuts until now.
So my question is simple. Is there any way to turn this feature off? Globally is good but a per-shortcut solution would be better.
Using a batch file instead of a shortcut is one solution, but I'm wondering if there's any way to make this work while still using a shortcut.
I'm using Windows 10 Home and Windows 7 Home.