Liberty BASIC Community Forum
« Appdata directory access »

Welcome Guest. Please Login or Register.
Jan 20th, 2018, 10:56am

Rules|Home|Help|Search|Recent Posts|Notification

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Appdata directory access  (Read 246 times)
Global Moderator

member is offline


Graphics = goosebumps!


Gender: Male
Posts: 5617
xx Appdata directory access
« Thread started on: Jan 18th, 2016, 03:22am »

'this is the current working directory, usually where you keep your project
print DefaultDir$ = "C:\Basic\Project"

'this is the directory that liberty.exe started in, a protected Windows directory
print StartupDir$ = "C:\Program Files (x86)\Liberty BASIC v4.5.0\"

'this is the resources directory for .bmp .wav tutorials and sample code, it is hard to find
print %appdata% = error

It is hard to find because you can't use the %appdata% system variable directly in Liberty. Could we
have a Liberty system variable AppdataDir$ that allows easy access to the user files?

print AppdataDir$ = "C:\Users\Rod\AppData\Roaming\Liberty BASIC v4.5.0\"

We can debate the trailing \ smiley
« Last Edit: Jan 18th, 2016, 03:24am by Rod » User IP Logged

Stefan Pendl
Global Moderator

member is offline


Computers are like babies, you must teach them what you like them to do ...

Homepage PM

Gender: Male
Posts: 5303
xx Re: Appdata directory access
« Reply #1 on: Jan 24th, 2016, 02:52am »

See Run at startup for a function to get any of the special folder locations.
User IP Logged


Make sure to read and follow the Forum Guidelines

Liberty BASIC Pro 4.04, Windows 10 Professional x64, Intel Core i7-4710MQ 2.5GHz, 16GB RAM
Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Rules|Home|Help|Search|Recent Posts|Notification

Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls