Ooops
March 05, 2021, 06:44:56 AM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Like stats
Home
Forum
Help
Search
Gallery
Login
Register
SyntaxBomb - Indie Coders
»
Languages & Coding
»
Blitz Code Archives
»
Miscellaneous
»
[bb] Application Directory by fredborg [ 1+ years ago ]
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: [bb] Application Directory by fredborg [ 1+ years ago ] (Read 491 times)
BlitzBot
Jr. Member
Posts: 1
Total likes: 0
[bb] Application Directory by fredborg [ 1+ years ago ]
«
on:
June 29, 2017, 12:28:41 AM »
Title :
Application Directory
Author :
fredborg
Posted :
1+ years ago
Description :
People often encounter problems when they make their final executables, and start them from a shortcut on the desktop or similar.
This will solve those problems!
Add it as the first thing in your code, and you're home free.
Code :
Code: BlitzBasic
; Path to executable
Global
apppath$ =
SystemProperty
$
(
"appdir"
)
If
Lower
$
(
Right
$
(
apppath$,
4
)
)
=
"bin"
; Running from the IDE
apppath$ =
CurrentDir
$
(
)
End If
If
Right
$
(
apppath,
1
)
<>
""
Then
apppath = apppath+
""
ChangeDir
(
apppath
)
Comments :
Picklesworth(Posted 1+ years ago)
I was looking for that just a few days ago.Thanks!
erbbysam(Posted 1+ years ago)
neat stuff... I always run into this when I create an exeacutable packed setup file and then install and realise that the program doesn't know where to run from....Thanks
nawi(Posted 1+ years ago)
Thank you very much
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
SyntaxBomb - Indie Coders
»
Languages & Coding
»
Blitz Code Archives
»
Miscellaneous
»
[bb] Application Directory by fredborg [ 1+ years ago ]
SimplePortal 2.3.6 © 2008-2014, SimplePortal