Note that there are some explanatory texts on larger screens.

plurals
  1. POPowerShell Script to move folders one level up and delete the previous containing folder
    primarykey
    data
    text
    <p>I'm having a windows server 2008 machine on which i've a folder structure like</p> <pre><code>root_folder ...........username1 ....................project1 ............................category ....................................subproject1 ....................................subproject2 ....................................subproject3 ....................project2 ............................category ....................................subproject1 ....................................subproject2 ....................................subproject3 </code></pre> <hr> <pre><code> ...........username2 ....................project1 ............................category ....................................subproject1 ....................................subproject2 ....................................subproject3 ....................project2 ............................category ....................................subproject1 ....................................subproject2 ....................................subproject3 </code></pre> <hr> <p>Now here what i need to do is remove the category folder and copy its content directly under the respective project(x) folder. Somewhat like this</p> <pre><code>root_folder ...........username1 ....................project1 ....................................subproject1 ....................................subproject2 ....................................subproject3 ....................project2 ....................................subproject1 ....................................subproject2 ....................................subproject3 ----------------------------------------------------------- ...........username2 ....................project1 ............................subproject1 ............................subproject2 ............................subproject3 ....................project2 ............................subproject1 ............................subproject2 ............................subproject3 ----------------------------------------------------------- </code></pre> <p>How this can be done with powershell script. Also what would be the best a powershell script or a batch file.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload