用copy备份数据表,结果显示不能创建选择的目录
用copy备份数据表,结果显示不能创建选择的目录。我用浏览按钮,选择路径。给Thisform.pageframe1.page1.text1.Value。如果是选择的是根目录像E:\就可以备份,但是如果选择文件夹,像E:\00\,就会显示 不能创建 E:\00\,请问是什么原因呢?
程序代码:Case Thisform.pageframe1.page1.check1.Value=0
If Empty(Thisform.pageframe1.page1.text1.Value)=.F.
Dir=Sys(2003)
dir1=Sys(5)
ml=dir1+Dir
Back=Alltrim(Thisform.pageframe1.page1.text1.Value)
If Empty(Back)=.T.
=Messagebox("请重新选择你所要备份的目录!")
Retu
Else
If Thisform.pageframe1.page1.check2.Value=1
&&Select cundao
COPY File cundao.Dbf To &Back
Endif
If Thisform.pageframe1.page1.check3.Value=1
&&Select jiamu
Copy File jiamu.Dbf To &Back
Endif
Endif
Endif
Endcase
=Messagebox("数据备份已经完成!","信息提示框")









