是德科技
直播中

巩潇然

7年用户 196经验值
私信 关注
[问答]

错误702无法打开文件“文件名”权限被拒绝

亲爱的团队请指教。
如何从目录D: iRCT Software  CarrierPower  Picpower.PNG中删除原始文件?
当我尝试使用命令“execute close”和“System.IO.File.Delete(path)”从目录中删除文件时;
,程序发生错误为附件。
请参阅我为您提供的图表参考。
你能告诉我示例命令吗?

以上来自于谷歌翻译


     以下为原文

  Dear Team  

Please advice.
How can I  delete an original file from the directory D:iRCT SoftwareCarrierPowerPicpower.PNG?
When I try to delete file from the directory with command “ execute close” and “System.IO.File.Delete(path)”;  , the program occurred error as attach file.  
Please see diagram that I made for you reference. Could you please let me have the example command?   
附件

回帖(1)

顾天天

2018-12-29 16:52:47
我认为您遇到的问题是您尝试使用两种不同的方式来访问同一个文件。
如果您正在使用To / From File对象来读取/写入文件,只需使用带有EXECUTE DELETE的To File,您无需先关闭它,因为无论如何VEE都独占使用它。
HTH,迈克

以上来自于谷歌翻译


     以下为原文

  I think the problem you have is that you are trying to use two different ways to access the same file.

If you are using To/From File objects to read from /write to the file simply use a To File with EXECUTE DELETE, you don't need to close it first because VEE has exclusive use of it anyway.

HTH,

Mike
举报

更多回帖

发帖
×
20
完善资料,
赚取积分