Skip to content

Instantly share code, notes, and snippets.

@niikoo
Created February 25, 2019 22:47
Show Gist options
  • Save niikoo/30debb315de8515c3afe9f53bc44a73b to your computer and use it in GitHub Desktop.
Save niikoo/30debb315de8515c3afe9f53bc44a73b to your computer and use it in GitHub Desktop.
@niikoo
Copy link
Author

niikoo commented Feb 25, 2019

Install script:

  1. Copy the bat file so that it's path is C:\Windows\MoveAndRelink\MoveAndRelink.bat
  2. Replace N:\\ with the desired folder to move stuff to.
  3. Place the following in a file with extension .reg and run it.
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Folder\Shell\move_and_relink\command]
@="C:\\WINDOWS\\MoveAndRelink\\MoveAndRelink.bat N:\\ \"%1\""

[HKEY_CLASSES_ROOT\Folder\shell\move_and_relink]
@="Move and Relink"
"Icon"="C:\\Windows\\System32\\shell32.dll,-16752"

@niikoo
Copy link
Author

niikoo commented Feb 25, 2019

Needs PsExec.exe at the same location as the bat file. Get it from Microsoft sysinternals.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment