Welcome to Hackers Alliance!

[VB.NET] Start a program and open a file with it

  • Archived

    The forum is archived and used for testing. It is currently read-only to visitors.
    It has been upgraded from vBulletin 3.8.x to XenForo for security purposes and future-proofing. Proprietary code and modifications (such as code database and HA bot) are broken with XenForo and will stay only with vBulletin.

1UP

New member
Nov 3, 2010
66
3
0
33
Now this is pretty simple (and really short) but when I was doing this, I never paid attention to the things that I could pass to Process.start (and boy did I feel stupid after I figured this out)

Anycase this was something I was doing for a rom launcher for the pokemon games.

Code:
 Process.Start("emulator\vba\VisualBoyAdvance.exe", "roms\gb\yellow\Pokemonyellow.zip")
Basically the first part needs the location of the program to open, in this case it's in the same folder of the application so I can just use a relative path rather then absolute. The second part works the same way and when the button is pressed it will open VBA with PokemonYellow already opened in the emulator.
 
This site has been archived and is no longer accepting new content.

About us

  • Hackers Alliance is a small community forum about gaming and console hacking. Join our humble community to share ideas, game cheats, mods, and be part of an amazing growing community!

Quick Navigation

User Menu