如何删除一个长的路径在Windows中。 [英] How to delete a long path in windows.

查看:128
本文介绍了如何删除一个长的路径在Windows中。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将项目导入eclipse时,以某种方式开始创建目录的递归版本。

When importing a project into eclipse, it somehow started creating recursive versions of the directory.

现在,当我尝试删除任何内容时,我会收到消息您指定的文件名太长。

Now, when I try to delete anything, I get the message " the file name you specify is too long."

我无法从命令shell中删除它。我无法从资源管理器中删除它。我不能做任何事情。我不知道Eclipse创建了多少副本。 Eclipse正在运行一分钟,之前我发现有一些错误,我取消了操作。

I can't delete it from the command shell. I can't delete it from explorer. I can't do ANYTHING with it. I have no idea how many copies of it Eclipse created. Eclipse was running for like a minute before I realized something was wrong and I cancelled the operation.

我可以获取顶级文件夹的属性,它表示它包含497个文件夹。

I can get the properties of the top level folder, and it says it contains 497 folders.

问题1:如何在Windows中删除所有这些东西?

Question 1: how can I delete all this stuff in Windows?

问题2:什么是日食思想?

Question 2: What the hell was eclipse thinking?

推荐答案

我有一个类似于Eclipse的问题:尝试使用Subclipse导入项目,它生成了一套深入嵌套的目录,我无法删除。

I had a problem similar to this with Eclipse: trying to import a project using Subclipse, it generated a deeply nested set of directories which I couldn't delete.

我做了几件事,首先我将目录名编辑到最短的长度(实际上我认为这是无意义的) 。其次,我尽可能地遍历目录树,然后剪切并粘贴分支(这样可以删除原来的分支),然后重复进程。

I did a couple of things, firstly I edited the directory names down to the shortest length possible (actually I think this was pointless). Secondly, I traversed the directory tree as deeply as possible and then cut and pasted the branch out (which makes it possible to delete the original branch), and then repeated the process.

@Charlie和@ Tomalek的解决方案看起来更加优雅。我不打算重复经验来找出。

@Charlie and @Tomalek's solutions look like they might be more elegant. I don't plan on repeating the experience to find out though.

这篇关于如何删除一个长的路径在Windows中。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆