Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ディレクトリを再帰的に新しい場所に移動し、ディレクトリの名前を変更する必要があります。XCOPY を使用してディレクトリを移動し、その上で RENAME コマンドを実行しますか (またはその逆)、またはより良い方法はありますか?
試してみてくださいxcopy /E sourcefolder destinationfolder\newname\。フォルダ「newname」がまだ存在しない場合、末尾の円記号は、ファイルがディレクトリを意味するかどうかの質問を抑制します。応答ファイルはあなたが望むものではありません。
xcopy /E sourcefolder destinationfolder\newname\