Copy-Item Could not find part of path (with . in folder name)
I'm trying to use Copy-Item to copy a file to an existing folder and getting the error "Could not find part of path". I've Googled this problem for ages, but can't seem to find an answer. I altered the code to check that I could copy to each folder in the path and then hit the problem when .'s were used in the file name. Also I cannot change the folder name because the folder name is created by a (crappy) Oracle related installer. Essentially the code is like this (the code is run in the context of the source directory)... $Filename = "new.txt" $Destination = "C:\a\b\c\d\e.f\g\h" Copy-Item -Pa
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.