VFP擦除命令抛出错误1105
我在几个网站上遇到了一种奇怪的情况,其中无害的线路
ERASE (lcTablePath) RECYCLE
抛出了错误
错误号:1105 - 写入文件 XXXXXXXXXX 时出错
lcTablePath
确实有一个值,并且它通过 UNC 路径指向网络上确实存在的文件。我假设这是一个网络问题,可能与权限有关。
但到底为什么会出现“1105 - 写入文件时出错”?我根本就没有写信。
编辑:经过进一步调查,问题实际上是这个
FILE(XXX) 说“true”,即文件确实存在
ERASE (XXX)
OR
lcTemp = FILETOSTR(XXX)
失败,FILETOSTR 带有“文件未找到”。
搞什么?
I have a strange situation at a couple of sites where the innocuous line
ERASE (lcTablePath) RECYCLE
is throwing the error
Error Number: 1105 - Error writing to file XXXXXXXXXXX
lcTablePath
does have a value and it's pointing to a file that DOES exist across the network via a UNC path. I'm assuming it's a network issue, possibly with permissions.
But why on earth "1105 - Error writing to file"? I'm not WRITING to it at all.
EDIT: On further investigation, the issue is actually this
FILE(XXX) says "true", ie the file does exist
ERASE (XXX)
OR
lcTemp = FILETOSTR(XXX)
fail, the FILETOSTR with "file not found".
WTF?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许是 RECYCLE 子句 - 尝试写入不存在的回收位置,因为该文件位于网络位置。
Maybe it's the RECYCLE clause - trying to write to a recycle location that doesn't exist, because the file was on a network location.