【发布时间】:2018-03-23 03:39:48
【问题描述】:
我不明白为什么我找不到文件,它在正确的位置。它以前工作过。但现在它只适用于同一位置的某些文件。我 100% 确定文件的路径和名称与代码中的相同.... 无法找到文件时无法理解...
If ComboBox2.Text = " 1YZ-C01C 567.737.061 CA" Then
If My.Computer.FileSystem.FileExists("source/Chr/1YZ-C01C 567.737.061-eeprom.txt") Then
If My.Computer.FileSystem.FileExists("source/Chrysler/1YZ-C01C 567.737.061-erom.txt") Then
Button2.Enabled = False
button1.Enabled = False
Else
ErrorOops.Show()
Button2.Enabled = True
Label1.Text = "Cant Find the file."
Exit Sub
End If
Else
ErrorOops.Show()
Button2.Enabled = True
Label1.Text = "Cant Find the file."
Exit Sub
End If
End If
【问题讨论】:
标签: vb.net file-exists