3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Windowsでパスが長すぎでファイル削除できない

Posted at

#1,管理者権限で「PowerShell」を開く

#2,下記のコマンドを打つ

robocopy empty_dir will_delete_dir /purge

#3,説明

robocopy:windowsバッグアップ用コマンド
empty_dir:任意空ファイル
will_delete_dir:削除したいパスのルートパス
/purge:ファイルとディレクトリ削除の設定

#4,例 "C:\workspace\03_workapp\51_sub"の配下を全部削除したい場合は

robocopy C:\temp C:\workspace\03_workapp\51_sub /purge
3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?