I have to develop the following script:

This is the directory C: \ Output

1) In the directory there are subfolders C: \ Output \ subfolder1 \ subfolder2, within subdirectory 2 there is a .csv file
This file I have to move is to report exactly in C: \ Output \ subfolder1
2) The subfolder 2 must delete it
3) Subfolder1 must rename and recall exactly subfolder1 subfolder2

Do you have any examples of how it is carried out?
Any suggestions?


This is my code but it does not work. you can help me?

Please Login or Register  to view this content.
This is excel:

Cattura.JPG

This I have to do in practice step 1:
step1.JPG
This I have to do in practice step 2:
step2.JPG
This I have to do in practice step 3:
step3.JPG