Copy file with different name #3906
Unanswered
silviyanedelcheva
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Thank you for your question. You are right, currently you cannot copy a file to the same directory which might not be ideal in your case. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I have a task to copy a file located in the powershell directory and paste it in the same directory with different name.
The only solution that worked for me was to get the file locally and uploade it again with the new name. But that is a bit slow(file size is 200 mb).
Are there other ways to do this task?
I checked that in PowerAutomate the task is done by getting the file content and creating new file with different name and set the content, but there is no CLI command for creating file.
In SharePoint UI we could 'copy to' file in the same folder and rename it. But I can't use CLI copy command with same sourceURL and targetURL directory.
Best Regards,
Silviya
Beta Was this translation helpful? Give feedback.
All reactions