by Kevin M Matthews (2 Submissions)
Category: Files/File Controls/Input/Output
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (3 Votes)
I was writing a program that required extracting the target path from a shortcut file. All the example I found used the "WScript.Shell" to achieve this. I decided to write a function which uses the createfile and readfile apis to load the file into memory, find the target path, and extract it. In this demo, just drag-drop shortcuts to the form and a message box will popup showing the target.