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 / Is there a function to............

Author
Message
Dark Wolf
22
Years of Service
User Offline
Joined: 21st Apr 2003
Location: Shadows
Posted: 22nd May 2003 05:14
Ok i am trying to make this program like a shorcut to all my games but i am stuck now and i am wondering if there is a function that runs the program i pick or opens it like if i clicked it

thanks in advance if you can help me with that
Kentaree
22
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 22nd May 2003 14:55
The command to run external file is execute file

execute file fileName$, cmdLine$, path$

Where fileName$ is the name of the file you want to open, cmdLine$ anything you want to pass to the command line of the file and path$ is the folder the file is in.

Whatever I did I didn't do it!
Dark Wolf
22
Years of Service
User Offline
Joined: 21st Apr 2003
Location: Shadows
Posted: 23rd May 2003 02:45
Thanks but it says that unrecognized parameter i got dbc by the way
and whay is the cmdline? thanks again

Hell IVIonkey
22
Years of Service
User Offline
Joined: 1st Apr 2003
Location: Outer Limits
Posted: 23rd May 2003 02:54
Replace fileName$ with the name of your file.
Replace cmdLine$ with any command line strings you want: If you've played Half-Life, you could from RUN type "Hl.exe -dev -console" to bring up -dev mode and -console mode. You probably can leave this section blank.
Replace path$ with the directory you want to enter to execute the file.

Dark Wolf
22
Years of Service
User Offline
Joined: 21st Apr 2003
Location: Shadows
Posted: 23rd May 2003 03:08
nm i found out how to use them thanks for the help

Login to post a reply

Server time is: 2025-05-18 05:07:00
Your offset time is: 2025-05-18 05:07:00