namerg
asked on
How to move files and folders into a folder that is part of the same folder tree ?
Hello, I have the following code but i am getting access denied.
I need to move everything from "C:\ArchiveDocs\DocImageEx ports\Serv icing" into "C:\ArchiveDocs\DocImageEx ports\Serv icing\Old"
Error:
Thanks for your help
I need to move everything from "C:\ArchiveDocs\DocImageEx
Move-Item -Path "C:\ArchiveDocs\DocImageExports\Servicing" -Destination "C:\ArchiveDocs\DocImageExports\Servicin
g\Old"
Error:
Move-Item : Access to the path 'C:\ArchiveDocs\DocImageExports\Servicing' is denied.
Thanks for your help
With that statement, you are trying to move a folder into a sub-folder. Do you really want to move all the files into the sub-folder?
ASKER
Yes. Into the sub-folder "Old"
You can't move a folder into a subfolder. You have to specify the files in the folder and move them into the subfolder.
mlmcc
mlmcc
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
That script does not nothing. :(
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
The code did the requested question