我有一个问题导致我的整个项目运行不正确。后来我发现是什么原因造成的,但我无法修复它。问题是我的 VB.net 应用程序找不到该文件,我 100% 确定该文件在那里。(老实说,我必须在 \bin\minecraft.jar 中打开 minecraft.jar,相对于应用程序。但我用文本文件尝试过,它也不起作用)
Try
Shell(Application.StartupPath + "\options.txt")
Catch Ex As Exception
MsgBox(ErrorToString) ' I've got file not found..
MsgBox(Application.StartupPath + "\options.txt") 'Displays the path to my file, and in Explorer (Windows) it opens the file
End Try