![]() ![]() Get-ChildItem $sourceDir -Recurse -Include. **function fcopy ($SourceDir,$DestinationDir) Here is the code I ran which resulted in the error message above. FullyQualifiedErrorId : System.NotSupportedException, It provides also, internal preview and is very easy to use. My current script works flawlessly to create needed sub-folders and move files but I loose any previous files. I need a way to check for duplicates and if found, increment the source file name by -1. I use the free Duplicate File Finder by MindGems. Problem - There are duplicate files that need can't be overwritten. CategoryInfo : NotSpecified: (:), NotSupportedException You can not find duplicates without a dedicated application. Copy-Item -Path $SourceFile -Destination $DestinationFile. VERBOSE: Performing the operation "Copy File" on target "Item: E:\Seagate DashboardĢ.0\DAVES-NEW-HP-AL\2rams\Backup\6f4eff08-67aa-44c7-a519-a0a459d1f9e5\20211018_235910_2ramsInc117\C\Users\2rams\OneDrivĮ\Pictures\Emma and Ivey Fall 2021 Photo Shoot\highlights\21Fall.jpg Destination: E:\Photo_Backup\E:\Seagate DashboardĮ\Pictures\Emma and Ivey Fall 2021 Photo Shoot\highlights\21Fall.jpg".Ĭopy-Item : The given path's format is not supported. ![]() Not sure why I am getting error messages now. The copy worked before I added the filter but the code grabbed all files regardless of the extension and put them in the E:\Photo_Backup directory. It seems that this may not like the sub directory folder names that Seagate created or my code needs some enhancing? When I look at the error message it appears that the Destination is not only E:\Photo_Backup, but also the sub directories the files reside in.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |