Filesystemobject.copyfile sourcefile最大文件名长度 [英] Filesystemobject.copyfile sourcefile max filename length
问题描述
您好,
我有一个例程,其中我找到了"未找到路径"在一个可靠的filesystemobject.copyfile方法上。调查实例我意识到有问题的文件源长度为181个字符。这太长了吗?如果是,最大文件名
长度是多少?
I have a routine in which I get a "Path not found" on an otherwise reliable filesystemobject.copyfile method. Investigating the instance I realized that the file source in question was 181 characters in length. Is this too long? If yes, What is the max filename length?
希望我没有咆哮错误的树!
Hopefully I am not barking up the wrong tree!
谢谢
推荐答案
您好,
您可以使用路径长度。如果您不使用unicode - 它不应超过260个字符。本文有更多详细信息: http://msdn.microsoft.com/en -us / library / aa365247(VS.85).aspx 。
You are OK With the path length. If you don't use unicode - it shall be no more than 260 characters. This article has more detail: http://msdn.microsoft.com/en-us/library/aa365247(VS.85).aspx.
您收到的消息可能与您在路径中使用unicode符号有关。另一个选项 - 您没有足够的权限来访问该文件。
The message you get could be related to using unicode symbols in your path. Another option - you don't have enough permissions to access the file.
Nadia
这篇关于Filesystemobject.copyfile sourcefile最大文件名长度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!