Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

rename folders in order

$
0
0

Good Evening 

In the environment we have a folder called c:\dacto\trading with two folders inside of it one that says trading and another one that says pre trading  on about 20 servers anytime we do a new release we have to rename the trading folder  to "trading_and the date so for example it will be name trading _07242015 then we have to rename the pre trading folder to trading

 

Is there anyway that can be done in power shell since i already have a script that will robocopy the pre trading folder to the location but do not have a script to rename the folders since they have to be renamed in order first the trading folder needs to rename to trading_and the date and the pre trading folder needs to be renamed to trading.

Thank you  


Viewing all articles
Browse latest Browse all 6937

Trending Articles