1
I have the way A
and fate B
. This destination is repeated for several clients as the structure below shows:
A -->app.exe -->server.ini -->js.png. B-Cliente 01 -->app_cliente01.exe -->server.ini -->js.png. B-Cliente 02 -->app_cliente02.exe -->server.ini -->js.png B-Cliente 03 -->app_cliente03.exe -->server.ini -->js.png.
I need to copy all the files from the directory A
to the paths of B
, but when making this copy I need to rename the files with part of the destination name.
Example: app.exe
would be app_cliente01.exe
when copied to the folder B-Cliente 01
.
What is your question? There is an error when copying?
– lsalamon
So I don’t know much about Powershell I wanted at least one idea for me to start researching the commands and how can I do this
– Sergio Souza
Okay, if your goal is to better understand what is being done, I suggest rolling up your sleeves and practicing. The answer given by the Omni user will help you. But no free lunch, most materials are in English. See the links:<br> Windows Powershell Basics<br> about_Comparison_Operators<br> Learn How to Load and Use Powershell Snap-ins<br> [Create Custom Win
– lsalamon