View Single Post
Old 09-02-2008, 03:55 AM   #1 (permalink)
CrazeD
CrazeD's Avatar
 
Wizard Techie

Join Date: Feb 2006

Location: Maine

Posts: 3,688

CrazeD will become famous soon enough

Send a message via AIM to CrazeD Send a message via MSN to CrazeD
Default VB help, trying to start program

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:

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.
__________________

Need website help? PM me!
CrazeD is offline