Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Open .exe from darkbasic game

Author
Message
BE Game
20
Years of Service
User Offline
Joined: 29th May 2006
Location:
Posted: 3rd Oct 2006 23:15
Hi, there I need to open an .exe file from darkbasic, is that possible and how I can do it. Thank You.

People don't fail they stop trying ...
CreamPie
19
Years of Service
User Offline
Joined: 20th Jul 2006
Location:
Posted: 4th Oct 2006 03:38
BE Game,

You must, must, must go over the DBC help files and index and glossary. All available commands are in there for you. Sorry if I sound rude...it is not my intention.

EXECUTE FILE
This command will shell execute a file. The commandline is used to pass additional data into the file being executed. The directory is used to optionally specify a directory other than the current directory. The file must exist or the command will fail. Passing a document, rather than an executable as the filename will cause the document to be opened.

SYNTAX
EXECUTE FILE Filename, Commandline, Directory
Lukas W
22
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 4th Oct 2006 09:59
here is an example:

Execute File "hl.exe", "-c", "c:\Games\Half Life"

this means that you run HL.exe with the command line -c which will bring up the console. and the path is the path to the exe file so that you will run the game with all its media.
if you do not spesify the directory name, no media will be loaded because hl.exe think that it is located in the directory you are running your exe file from

Login to post a reply

Server time is: 2026-07-07 01:53:58
Your offset time is: 2026-07-07 01:53:58