“rm -rf” equivalent for Windows?

前端 未结 21 1515
一向
一向 2020-11-27 08:40

I need a way to recursively delete a folder and its children.

Is there a prebuilt tool for this, or do I need to write one?

DEL /S doesn\'t dele

21条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-27 09:30

    here is what worked for me:

    Just try decreasing the length of the path. i.e :: Rename all folders that lead to such a file to smallest possible names. Say one letter names. Go on renaming upwards in the folder hierarchy. By this u effectively reduce the path length. Now finally try deleting the file straight away.

提交回复
热议问题