Dim Path As String = "C:\Users\Administrator\Personal\Foxtable_backup"
Syscmd.Project.Backup(Path,True)
以上代码在 关闭项目前自动进行 项目备份
但有时 提示
错误
---------------------------
自定义函数"Pro_BeforeCloseProject"执行出错,错误信息如下:
System.NotSupportedException: 流不支持写入。
在 System.IO.__Error.WriteNotSupported()
在 System.IO.FileStream.SetLength(Int64 value)
在 C1.C1Zip.c.a()
在 C1.C1Zip.c.c()
在 System.IO.Stream.Dispose()
在 C1.C1Zip.C1ZipFile.a(Stream A_0, String A_1, DateTime A_2)
在 C1.C1Zip.C1ZipFile.a(String A_0, String A_1, DateTime A_2)
在 C1.C1Zip.C1ZipEntryCollection.Add(String fileName, String entryName, DateTime dateTime)
在 C1.C1Zip.C1ZipEntryCollection.Add(String fileName, String entryName)
在 Foxtable.Syscmd.Project.Backup(String Path, Boolean Auto)
在 UserCode.AxwLOsx1vRWNBCEY9(Object[] Args)
---------------------------
确定
---------------------------
如何规避