PSCopyFileEx

1.0.3

A PowerShell module for copying files with advanced progress reporting and Windows API support. Features include detailed progress bars, speed reporting, and support for both managed and Windows API file copy operations.

Minimum PowerShell version

5.1

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name PSCopyFileEx -RequiredVersion 1.0.3

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name PSCopyFileEx -Version 1.0.3

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2025 LordBubbles. All rights reserved.

Package Details

Author(s)

  • LordBubbles

Tags

file-copy windows-api progress file-transfer copy powershell CopyFileEx copy-item

Functions

Copy-FileEx

Dependencies

This module has no dependencies.

Release Notes

1.0.3:
- Readjusted verbose logging logic

1.0.2:
- Fixed verbose messages showing success messages when the operation failed
- Fixed verbose messages indicating which copy method is used once per file copied
- Fixed files being overwritten without -Force parameter when the file names include wildcards
- Fixed cancellation with CTRL+C not working in all cases

1.0.1:
- Fixed Include/Exclude filter handling for recursive directory operations
- Improved CTRL+C cancellation handling for both API and managed copy methods
- Fixed file handle cleanup and proper stream disposal
- Added immediate stream closure on cancellation
- Added proper cleanup of partial files when cancelled
- Fixed progress reporting to not show success messages when cancelled
- Added debug logging for troubleshooting
- Fixed file locking issues during cancellation
- Improved error handling and reporting
- Added proper garbage collection during cleanup

1.0.0 - Initial release with support for:
- Advanced progress reporting with speed calculations
- Windows API support through CopyFileEx
- Managed file copy fallback
- Support for single files and directories
- Recursive copy support
- Force parameter for overwrite control

FileList

Version History

Version Downloads Last updated
1.0.4 5 1/18/2025
1.0.3 (current version) 3 1/18/2025
1.0.2 3 1/18/2025
1.0.1 4 1/17/2025
1.0.0 5 1/17/2025