A PowerShell-based tool that adds separate "Move" and "Copy" functionality to Windows Explorer context menu for selected files and folders.
- Select multiple files or folders in Windows Explorer
- Right-click and choose "Move Files" or "Copy Files" (for files) or "Move Folder" or "Copy Folder" (for folders)
- GUI interface to choose destination folder
- Dedicated Move or Copy operation based on menu selection
- Error handling with user-friendly messages
- Windows 10/11
- PowerShell (included with Windows)
- Administrator privileges for installation
- Download or clone this repository.
- Right-click on
AddToContextMenu.ps1and select "Run with PowerShell" (run as Administrator). - The script will add the context menu items to Windows Explorer.
- Restart Windows Explorer or log off/log on for changes to take effect.
To restart Explorer:
- Open Task Manager (Ctrl+Shift+Esc)
- Find "Windows Explorer" in Processes
- Right-click and select "Restart"
- Select one or more files/folders in Windows Explorer.
- Right-click on the selection.
- Choose "Move Files" or "Copy Files" from the context menu.
- In the tool window:
- Review the selected files/folders in the list.
- Click "Browse..." to select the destination folder.
- Click the appropriate button (Move or Copy) to perform the operation.
- Confirm the operation in the success message.
You can also run the scripts manually from PowerShell:
# For moving files
.\FileMove.ps1 -FilePath "C:\path\to\file1.txt"
# For copying files
.\FileCopy.ps1 -FilePath "C:\path\to\file1.txt"Run the uninstall script as Administrator:
.\RemoveFromContextMenu.ps1Alternatively, delete the following registry keys manually (run regedit as Administrator):
HKEY_CLASSES_ROOT\*\shell\MoveFilesHKEY_CLASSES_ROOT\*\shell\CopyFilesHKEY_CLASSES_ROOT\Folder\shell\FileMoveHKEY_CLASSES_ROOT\Folder\shell\FileCopy
- The tool handles both files and folders.
- Overwriting existing files/folders will be prompted by Windows.
- For security, the script uses
-ExecutionPolicy Bypass, but ensure you trust the source.
- If context menu doesn't appear, ensure you ran the installation script as Administrator.
- If the tool doesn't launch, check that PowerShell execution policy allows scripts.
- For multiple file selection, ensure all files are selected before right-clicking.