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 Professional Discussion / Anyway to get Program Files Directory?

Author
Message
YavinB
16
Years of Service
User Offline
Joined: 25th Sep 2009
Location: Ontario, Canada
Posted: 3rd Dec 2010 18:24
Hi, Is there anyway to get the program files directory?

Thanks.
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 3rd Dec 2010 18:39
Yes, there's a function for it in my plug-ins: DIR PROGRAMS()

Utility plug-ins (26-JUL-2010)
I'm applying terms of use that require you to wear a red nose and honk a horn whenever you use the Internet
Mugen Wizardry
User Banned
Posted: 3rd Dec 2010 18:40
Yes, download IANM's Matrix plugins, and use:

Directory = DIR PROGRAMS ( )

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD AT Amazon.com!
Benjamin
23
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 3rd Dec 2010 18:50
What does that function return on a 64-bit system?
Indicium
18
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 3rd Dec 2010 18:52
I imagine it would return the 32bit directory as dbpro is a 32bit program.

YavinB
16
Years of Service
User Offline
Joined: 25th Sep 2009
Location: Ontario, Canada
Posted: 3rd Dec 2010 20:22 Edited at: 3rd Dec 2010 20:23
@IanM

Little problem, How would I use that command?

When I use:


It doesn't show any text.
=PRoF=
23
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 3rd Dec 2010 21:05 Edited at: 3rd Dec 2010 21:12


It doesn't work for me either, using Windows 7 Ultimate 32bit.

>Edit<

@IanM
Actually, only 2 out of the Matrix 24 commands work; the rest just return an empty string.



Tested on the same Win7 pc as above.

IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 3rd Dec 2010 21:23 Edited at: 3rd Dec 2010 21:25
It's called 'a bug', and I stamp on'em when I see'em

I've just uploaded a new version of the plug-ins with that bug fixed.

=PRoF=
23
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 3rd Dec 2010 21:28
Lol, awesome.

And wow, almost exactly an hour from bug report to a fix being issued! that has to be some kinda record?

Good work Ian

IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 3rd Dec 2010 21:46
Thanks, but to be honest, it was a silly little bug that shouldn't have been released into the wild in the first place. Plus I was literally packaging everything up for release already anyway.

YavinB
16
Years of Service
User Offline
Joined: 25th Sep 2009
Location: Ontario, Canada
Posted: 3rd Dec 2010 22:01
Thanks, Exactly what I needed.

Login to post a reply

Server time is: 2026-07-21 13:38:48
Your offset time is: 2026-07-21 13:38:48