I am creating a program that allows the user to 'search' the computer for a file, and if the file exists, it will create a shortcut to start that file in a new directory. Any and all extensions can be used. The problem is, in order to start certain extensions (like .jar), I need the path of the file.
None of the examples I've seen so far have been successful in helping me with this, as they usually require an already given path to split.
Ex.
(dir %Filename%.%extension% /b /s /a:-D)
How would I be able to store only the path given by this into a variable?
Any help is appreciated.