1

In Windows 7-10, how can you create a shortcut that uses the current folder (directory) as a parameter?

For example:

Target: example.exe "%CD%"

(where %CD% gets automatically replaced by the current directory)

The idea is that when the shortcut is moved, it will always use the current folder as a parameter.

I have a hunch this is not possible in Windows (I could do it in OS/2!), but maybe someone knows how to accomplish this.

2
  • 1
    Use a batch file as the shortcut target?
    – DavidPostill
    Commented Apr 1, 2020 at 8:48
  • @DavidPostill Yes, that's what I have been doing. I thought perhaps there was a better and cleaner way that what I've been doing. :) Commented Apr 1, 2020 at 10:47

0

You must log in to answer this question.