
PowerShellでフォルダを移動するには、Move-Itemコマンドレットを使います。
構文
Move-Item [移動元フォルダ] -destination [移動先フォルダ]

PS C:\Data\test> Move-Item image2 -destination C:\Data\work
この例では、C:\Data\test配下にある「image2」という名前のフォルダを、C:\Data\work配下に移動しています。
ちなみに-destinationは省略できます。
スポンサーリンク