Chaos Project

RPG Maker => RPG Maker Scripts => Topic started by: Jragyn on September 03, 2010, 07:16:37 pm

Title: [RESOLVED] Running an EXE via XP?
Post by: Jragyn on September 03, 2010, 07:16:37 pm
Is it possible to run an executable from a script or something while inside a game.exe?

Intentions:
 Utilizing a map or something within RMXP to act as a "launcher" for executing other game programs inside the project folder.

ie:
 Having a map with some chara/events on it, inwhich you talk to them and it executes a minigame program (like minesweeper lets say).

This possible or probable?
Title: Re: Running an EXE via XP?
Post by: Blizzard on September 03, 2010, 07:52:27 pm
Sure.

system('EXE_PATH')


You can use absolute or relative paths. Relative paths will be taking the directory of Game.exe as current working directory.
Title: Re: Running an EXE via XP?
Post by: Jragyn on September 03, 2010, 08:02:38 pm
Erm, so then, using this:

system('Minigames/othergame.exe')


would run the executable in a folder named "Minigames" within the project folder of wherever Game.exe is located?
Title: Re: Running an EXE via XP?
Post by: Blizzard on September 04, 2010, 04:02:02 am
Exactly. But it's a bit problematic if you have the game already fullscreen.
Title: Re: Running an EXE via XP?
Post by: Jragyn on September 04, 2010, 05:16:46 am
Understood!
Thank you kindly for the tidbit of information. :3


--J