How to create a shortcut with relative path

Hi All,

I'm Linux user so I don't have enough experience to fix this issue.

How I can create a shortcut with relative path ?

Usually it easy to create shortcut with absolute path for example:
windows accept shortcut with absolute path c:\bin\app.exe but it didn't accept the following relative path:
.\bin\app.exe
 

Question Info


Last updated August 29, 2019 Views 145,995 Applies to:
Answer
Answer

Hi mbnoimi,

Thank you for using Microsoft Answers Forums!

To make a relative path shortcut here is a simple workaround. Make a shortcut to cmd.exe which executes the start command to open the current directory. Then set the cwd in the
shortcut properties.

Follow these steps:

Make a new shortcut to: cmd.exe /c start.

Now right-click on it and get properties of the shortcut (shortcut tab).

The full shortcut path should have been set to this:
%windir%\system32\cmd.exe /c start .

Set the "Start in" directory (i.e. cwd) to be a relative path:
(Example for a shortcut on the
Desktop

)
...\SendTo

Click on "Change Icon..." and set "Look for icons in this
file:" to:
%SystemRoot%\system32\SHELL32.dll

and press enter. The standard folder icon will probably be in the
lower right-hand corner.

Now you can copy this file and just change the "Start in:" directory
to make new relative shortcuts.

NOTE: The above steps are just an example hence try this at your own risk. And check if it works.


Hope this information was helpful.

Let me know if this worked.

All the best!

 

Thanks and Regards,

Uma R    - Microsoft Support.

Visit our Microsoft Answers Feedback Forum and let us know what you think.

 

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.