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 / File Code

Author
Message
Egyptian Mua
21
Years of Service
User Offline
Joined: 7th Apr 2004
Location: htdocs
Posted: 2nd May 2004 01:12
Can any one tell me if there is a way to make DBC look for a file and execute the code that that file contains?
If so how?

-Egyptianmua
Logo, QuickBASIC, HTML, DarkBASIC
Egyptian Mua
21
Years of Service
User Offline
Joined: 7th Apr 2004
Location: htdocs
Posted: 3rd May 2004 03:00
in other words find the source code in a file

-Egyptianmua
Logo, QuickBASIC, HTML, DarkBASIC
Guitar_M
21
Years of Service
User Offline
Joined: 2nd Oct 2003
Location:
Posted: 3rd May 2004 03:09
There is a edit post button....don't have to double post
stann65
21
Years of Service
User Offline
Joined: 3rd Feb 2004
Location: england
Posted: 5th May 2004 19:29
were is the edit post button i can't find it

zircher
22
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 5th May 2004 21:18 Edited at: 5th May 2004 21:18
The blue LINK appears under the avatar in the gray bar on your posts only.

To answer the original question: No, you can not execute the code. You can write a script parser and run a script, but that's a different animal and is not a trivial task.
--
TAZ

Egyptian Mua
21
Years of Service
User Offline
Joined: 7th Apr 2004
Location: htdocs
Posted: 18th May 2004 00:40
Could somone help with my question

-Egyptianmua
Logo, QuickBASIC, HTML, DarkBASIC
zircher
22
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 18th May 2004 00:51
Quote: "No, you can not execute the code."


I did. I'm sorry if you can't understand the answer.
--
TAZ

DaedalusX
21
Years of Service
User Offline
Joined: 10th Mar 2004
Location:
Posted: 18th May 2004 16:47
dunno if this is what u are looking for but hey try this. it will take the exe file and run it in this case by presssing "D" as that is scancode 32.if scancode()=32
filename32$="" `name of the exe
directory32$="" `leave like this
commandline32$=filename32$ `leave this
execute file "c:\DeusEx\system\DeusEx.exe", ` put the directory of the file in click about my computer and hcighlight the top line with directory in. commandline$,directory$,1 : end
endif
DaedalusX
21
Years of Service
User Offline
Joined: 10th Mar 2004
Location:
Posted: 18th May 2004 16:49
hmmm that didnt come out in a snippet like it should have.


if scancode()=32
filename32$="DeusEx.exe"
directory32$=""
commandline32$=filename32$
execute file "c:\DeusEx\system\DeusEx.exe", commandline$,directory$,1 : end
endif

Login to post a reply

Server time is: 2025-05-23 19:48:37
Your offset time is: 2025-05-23 19:48:37