PowerShell-HashCopy icon indicating copy to clipboard operation
PowerShell-HashCopy copied to clipboard

Fail to copy for filename containing square brackets '[ ]'

Open cho-uc opened this issue 1 year ago • 3 comments
trafficstars

Copying files with filename containing squarebracket "[ ]" will fail

Example:

  • Myfilename[123].txt -> fail, file is corrupted, but no error message
  • Myfailname].txt -> success
  • Myfailname[.txt -> fail with attached error message

Windows version : Windows 10 Version 22H2 PSVersion : 5.1.19041.5007

Command: Copy-FileHash -Path .\Source\ -Destination .\Destination\ -Recurse -PassThru -Verbose

Error

cho-uc avatar Oct 27 '24 10:10 cho-uc