It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Visual Basic Forum

Using VB Express to run an exe or bat file problem.

Moderator: dafunkymunky

Using VB Express to run an exe or bat file problem.

Postby Shamrock on Fri Apr 22, 2011 2:15 am

What I am trying to do is make a front-end application for the mugen 2d fighting game engine that uses command line arguments.

Right now I am just trying to make a button that will run the mugen.exe file.

So first I tried this;

System.Diagnostics.Process.Start("C:\Users\Mary\Downloads\mugen100\mugen1\mugen.exe")

Mugen gives me an error that says it can't load data/Mugen.cfg. Data is a folder in the mugen1 directory. If I run mugen by clicking it or even with the command line it runs fine.

So I tried making a bat file for it and run that instead.

System.Diagnostics.Process.Start("C:\Users\Mary\Downloads\mugen100\mugen1\mugenbat.bat")

If I click on the bat file, no problem at all, when I run this button I get

'This appilaction has fail to start because side-by-side configuration is incorrect. Please see the application event log for more information" In the prompt.

Application even log reports back for sidebyside

"Activation context generation failed for "C:\Windows\system32\mugen.exe". Dependent Assembly Elecbyte.MUGEN.libs,processorArchitecture="x86",type="win32",version="1.0.0.0" could not be found. Please use sxstrace.exe for detailed diagnosis."

I am a noob, but "C:\Windows\system32\mugen.exe". doesn't look like the right thing to me, but hey maybe I am wrong, either way i do not know how to fix it.

Elecbyte.MUGEN.libs is in a folder inside of the mugen1 directory.

Again, mugen works and so does the bat as long as I don't run them through VB Express.

If you don't know what mugen is and just in case it is important, it can be downloaded from here,

"http://www.elecbyte.com/"]http://www.elecbyte.com/"

Thanks for any info. I am a total VB noob so I bet it is something easy or at least I hope it is.
Shamrock
 
Posts: 1
Joined: Fri Apr 22, 2011 2:06 am

Who is online

Users browsing this forum: No registered users and 2 guests