本文介绍了如何在vb中进行备份和恢复的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在vb中进行备份和恢复





这是我的备份代码,但我不知道如何开始恢复备份?

备份按钮



how to make backup and restore in vb


this my code for backup but i dont know to how to start for restoring a backup?
Backup button

Dim portfolioPath As String = My.Application.Info.DirectoryPath
FileCopy(portfolioPath & "\patientrecord.mdb", "D:\Backup\patientrecord.mdb")
MsgBox("Backup Successful")





内容已从评论 - Maciej Los

[/ EDIT]



content has been moved from comment - Maciej Los
[/EDIT]

推荐答案

Dim portfolioPath As String = My.Application.Info.DirectoryPath
FileCopy("D:\Backup\patientrecord.mdb", portfolioPath & "\patientrecord.mdb")





更正双引号位置[\ edit]



[edit] Corrected double quote position[\edit]



这篇关于如何在vb中进行备份和恢复的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 14:04