删除长名称文件时出现问题 [英] problem deleting file with long name

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

问题描述

我有时会解压缩文件,并且在尝试将其删除之前必须将文件夹重命名为一个字母.原因是完整路径和文件名太长.是否有注册表设置或我可以执行的任何操作以使Windows忽略警告并仅删除文件?

无法删除....您指定的文件名无效或太长.请指定其他文件名."

当我尝试使用boost时也没有删除文件,但是也许我遇到语法错误?

I occasionally unzip files and have to rename the folder to a single letter before trying to delete it. The reason is that the full path & file name is too long. Is there a registry setting or anything that I can do to have Windows ignore the warning and just delete the file?

"Cannot delete.... The file name you specified is not valid or too long. Specify a different file name."

boost also did not delete the file when I tried using it, but maybe I had a syntax error?

推荐答案

这是恐龙时代的常见问题.从Win2K(?)开始,路径和文件长度已增加到32K.除非您具有非常深的目录结构,否则永远不要运行此问题.大约10年前,我们进行了一项测试,以了解使用3个char文件夹名称可以达到的深度,并且深度超过100个文件夹.

对于命名文件,路径和命名空间,请参见此处 [ ^ ]

由于您正在处理压缩文件,因此问题可能出在文件名上.检查您要删除的文件.有扩展名吗?您如何尝试删除它?
That was a common problem in the dinosaur age. Starting Win2K (?) the path+file length have been increased to 32K. Unless you have very deep directory structure you should never run to this issue. About 10 years back we did a testing to see how deep we can go using 3 char folder names and we went more than 100 folders deep.

See here for Naming Files, Paths, and Namespaces[^]

Since you are dealing with zipped files, you issue may be with file names. Check for the file you are trying to delete. Does it have any extension? how are you trying to delete it?


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

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