VB6打开文件进行追加发行找不到路径 [英] vb6 Open File For Append issue Path Not Found
本文介绍了VB6打开文件进行追加发行找不到路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Open App.Path & "\Folder\" & str(0) For Output
然而
似乎得到的路径没有找到,如果直接之前,我做
Seems to get a path not found however if directly before that I do
MsgBox App.Path & "\Folder\" & str(0)
它提供了正确的目录/文件名,我想
It Provides the correct directory/filename that I want
如果我的直接路径替换字符串中的引号不过工作罚款,这将不会是我的应用程序:(任何其他用户知道为什么不起作用?很好
and if I replace that string with the direct path in quotes it works fine however that won't be very good for other users of my app :( Anyone know why this doesn't work?
推荐答案
注释:您可以打开一个不存在的文件。
Comment: You can open a file that doesn't exist.
只有当您的文件夹中存在如此。如果两个文件夹和文件不存在,它会给出一个找不到路径的错误。
Only true if your folder exist. If both your folder and file does not exist, it will give a "path not found" error.
这篇关于VB6打开文件进行追加发行找不到路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文