vb.net - 找不到 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
我想不出任何帮助都会很棒。谢谢基因
解决方案
推荐阅读
- python - Pandas 将多列堆叠成一列
- python - 如果不满足条件,则比较数据框内容并更改列颜色
- kubernetes - Env Variable Array
- angular - I have a problem while running angular application
- wordpress - Memcached / Redis Wordpress Setup
- frontend - TYPO3 Extbase FE form - how to remove/delete inline relation
- python - Django get rid of duplicated queries in nested models
- xml - Is there a way to specify an alternate xsd source for a single namespace
- python - 使用偏移量时滚动窗口函数的意外结果
- c++ - how to define two dimensional string , not a char vector in C++