So, I'm new to pretty much any form of desktop programming. I'm gonna start out with VB, make some simple junk, then move onto something better.
So anyway, I'm trying to start a game with VB. More specifically, call of duty 4. The code opens simple exe's and bat's, but won't work with call of duty 4 or battlefield 2. In both cases, it says files are missing. Any clues as to why it would do that?
Code:
I've tried a few different ways of opening an exe that I found on Google, and they all had the same results.
Thanks.
So anyway, I'm trying to start a game with VB. More specifically, call of duty 4. The code opens simple exe's and bat's, but won't work with call of duty 4 or battlefield 2. In both cases, it says files are missing. Any clues as to why it would do that?
Code:
Code:
Public Class Form1
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Shell("C:\COD4\iw3mp.exe")
End Sub
End Class
I've tried a few different ways of opening an exe that I found on Google, and they all had the same results.
Thanks.