Need help with folder move script RRS feed

  • Question

  • Hi Everyone,

    Thanks in Advance... 

    I am looking for a powershell script which move the folders and its subfolders from one location to another location. For example 

    C:\ to D:\. To add i also require to give the input file where i would mention the folder name in it, so only those folders can move.

    Thursday, November 28, 2019 6:06 AM


  • I recommend using robocopy with the "/MOVE" switch, like so:

    $src = "source_folder_path"
    $dest = "destination_folder_path"
    $options = @("/MOVE")
    $cmdArgs = @($src, $dest, $options) 
    robocopy @cmdArgs  

    Monday, December 2, 2019 3:28 AM

All replies