如何删除名称太长的文件? [英] How do you delete a file whose name is too long?

查看:131
本文介绍了如何删除名称太长的文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从来没有见过这个问题。你有吗?首先,我在Windows 7计算机上有一个文件,我首先尝试从一个文件夹移动到另一个文件夹,并抛出一个错误,说: 文件名将是目标文件夹的工具...。

因此,我首先尝试将其复制到根目录C,驱动器它扔了同样的错误。

所以我试图删除该文件。它扔了同样的错误,因为显然它是要回收站。



所以我试着ALT删除。令人惊讶的是,它再次抛出相同的错误。

错误说我可以尝试重命名该文件。我右键单击该文件,它不提供该选项。



那么我尝试以管理员身份打开的命令行窗口。试图删除文件说,访问被拒绝。

是的,顺便说一下,它是一个AppData文件夹文件。所以可能是因为系统原因

解析方案robocopy:
试试这个:
在你想要删除的父文件夹中,说父母:

 父> mkdir new_empty_dir 
parent> robocopy new_empty_dir dir_want_to_delete / s / mir
parent> rmdir new_empty_dir
parent> rmdir dir_want_to_delete

希望这有助于其他人...


I have never seen this issue before. Have you?

First of all, I have a file on an Windows 7 computer that I first tried to move from one folder to another and it threw an error that said that "The file name(s) would be tool long for the destination folder...".

So I first tried to copy it to the root, C, drive and it threw the same error.

So I tried to delete the file. And it threw the same error because clearly it was going to the Recycle bin.

So I tried alt-delete. Suprisingly, it threw the same error again.

The error says I can try to rename the file. I right click on the file and it does not provide that option.

So then I try the command line window that I open as an administrator. trying to delete the file says that the access is denied.

Yes, it is an AppData folder file, by the way. So it might be because of the system

解决方案

Sometimes I have had the same problem, and what has worked for me is to run robocopy: Try this: Onto the parent folder in which you want to delete, say parent>:

parent> mkdir new_empty_dir
parent> robocopy new_empty_dir dir_want_to_delete /s /mir
parent> rmdir new_empty_dir
parent> rmdir dir_want_to_delete

Hope this helps somebody else...

这篇关于如何删除名称太长的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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