Quantcast
Channel: /r/powershell – How to Code .NET
Viewing all articles
Browse latest Browse all 8793

Script for moving files and folders to subdirectory in structure

$
0
0

hey all! hope i can find some help here..

i got following folder structure

root/folder_A/somefile

root/folder_B/somedir

….

i want to create a directory in every root folder like

root/folder_A/newfolder

root/folder_B/newfolder

and move all existing items (files and folders) to this new directory

like:

move “root/folder_A/somefile” to “root/folder_A/newfolder”

or

move “root/folder_B/somedir” to “root/folder_B/newfolder”

i think i have the command to create the directory structure, but moving everything inside is beyond my knowledge in PS scripting

thanks in advance!

submitted by /u/eye_wish
[link] [comments]

The post Script for moving files and folders to subdirectory in structure appeared first on How to Code .NET.


Viewing all articles
Browse latest Browse all 8793

Latest Images

Trending Articles



Latest Images