You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for the quick reply.
I replaced the command with -LiteralPath but the issue persisted. Copy-FileHash -LiteralPath .\Source\ -Destination .\Destination\ -Recurse -PassThru -Verbose
The file Myfilename[123].txt is inside Source folder.
Is the command above correct?
I see the problem. The -LiteralPath parameter only applies to the source path, it doesn't use LiteralPath when retrieving the files in the source folder (or on the destination at all as it happens).
Copying files with filename containing squarebracket "[ ]" will fail
Example:
Windows version : Windows 10 Version 22H2
PSVersion : 5.1.19041.5007
Command:
Copy-FileHash -Path .\Source\ -Destination .\Destination\ -Recurse -PassThru -Verbose
The text was updated successfully, but these errors were encountered: