首页 > 解决方案 > 找不到 c:\ 的路径

问题描述

我使用 Visual Studio 2012 创建了一个应用程序(exe),它在 vs 中运行良好,但在另一台计算机上安装后出现错误

找不到路径 c:\Program Files\our family\database1.sbf"

这是一些代码:

    If (FolderBrowserDialog1.ShowDialog() = DialogResult.OK) Then
        ChDir(Path:=FolderBrowserDialog1.SelectedPath)
        FileCopy("C:\Program Files(86)\Our Family\Database1.sdf", "DataBase1.sdf ")
        FileCopy("C:\Program Files(x86)\Our Family\Database1.sdf", "DataBase1 .log")
        Try
            MessageBox.Show("YOUR DATA FILES HAVE BEEN BACKEDUP Succesfully", "Information")
        Catch ex As Exception
            MessageBox.Show(ex.Message)
        End Try
    End If

我想不出任何帮助都会很棒。谢谢基因

标签: vb.net

解决方案


推荐阅读