question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PowerSymlink - Creates Symlinks from Context Menu ("mklink /D")

See original GitHub issue

Please add a PowerToy to create Symlinks from the Windows Explorer context menu.

For web projects, I often have to create symlinks (using mklink /D) from the command line. Having this feature in the Windows Explorer context menu will be a great time-saver.

The context menu should have two entries for this new PowerToy:

  1. Only, if folder/file is selected - Context menu shows “PowerSymlink - link to …
  • (Idea: Maybe it’s possible here to use the a modified version of the existing Windows “Create new Shortcut” feature.)
  • The click opens a popup with title “Set Symlink destination name”.
  • This popup contains a text field for the Symlink destination filename, a folder selector button, and a confirm button.
  1. Context menu shows “PowerSymlink - create new” (visible with or without selection)
  • Implementation like the existing Windows “Create new Shortcut” functionality (See screenshot)
  • If folder is selected, this folder is automatically set in the popup.

The following command is used by me normally to created symlinks on the command-line. The context menu entry for symlinks will also help to make less mistakes while creating symlinks for sure.

mklink /D "C:\Users\username\Local Sites\__CHANGE-PROJECT-NAME__\app\public\wp-content\plugins\__CHANGE-PLUGIN-FOLDER-NAME__" "C:\Users\username\Local Sites - Shared Project Data\plugins\__CHANGE-PLUGIN-FOLDER-NAME__"

More ideas:

  • Popup: It should be possible to direct copy and paste of the complete path including not yet existing filename in the text field. If the file does not exits, a confirm popup asks, if you really want to create this Symlink destination.

symlink_3

windows-shortcut

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:33
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
TheChilliPLcommented, Jan 13, 2023

There’s a tool for Windows called LinkShellExtension and it works quite well for that

4reactions
SvenBudakcommented, Jul 5, 2022

maybe it is even the easiest thing to do, if you can convert a folder link into a symlink by right clicking on it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I add a 'Create symlink' to the right mouse button ...
Specifically I want to add a command to create a symlink of the selected file/folder and place it in the destination folder. windows-7...
Read more >
Onedrive context menu on virtual drive and on symlink'd files
I synchronize my OneDrive for Business storage to local drive, and often open the files with RMB -> "View Online".
Read more >
Creating a Symlink on Windows 11 - Undocumented Features
Creating a Symlink on Windows 11 · Launch an elevated Command Prompt. · Run mklink /D <link target> <link source> . In my...
Read more >
The Complete Guide to Creating Symbolic Links (aka ...
You can create symbolic links using the mklink command in a Command Prompt window as Administrator or as a regular user. To do...
Read more >
Untitled
Drag a folder/file with right click, drop to the desired location for the link, then have the menu option "Create a symbolic link...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found