Skip to content

amur0ray/FileMoveCopyTool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

File Move/Copy Tool

A PowerShell-based tool that adds separate "Move" and "Copy" functionality to Windows Explorer context menu for selected files and folders.

Features

  • 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

Requirements

  • Windows 10/11
  • PowerShell (included with Windows)
  • Administrator privileges for installation

Installation

  1. Download or clone this repository.
  2. Right-click on AddToContextMenu.ps1 and select "Run with PowerShell" (run as Administrator).
  3. The script will add the context menu items to Windows Explorer.
  4. 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"

Usage

  1. Select one or more files/folders in Windows Explorer.
  2. Right-click on the selection.
  3. Choose "Move Files" or "Copy Files" from the context menu.
  4. 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.
  5. Confirm the operation in the success message.

Manual Usage

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"

Uninstallation

Run the uninstall script as Administrator:

.\RemoveFromContextMenu.ps1

Alternatively, delete the following registry keys manually (run regedit as Administrator):

  • HKEY_CLASSES_ROOT\*\shell\MoveFiles
  • HKEY_CLASSES_ROOT\*\shell\CopyFiles
  • HKEY_CLASSES_ROOT\Folder\shell\FileMove
  • HKEY_CLASSES_ROOT\Folder\shell\FileCopy

Notes

  • 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.

Troubleshooting

  • 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published