Board Logo
« Help: says StartupDir$ has no trailing "\" »

Welcome Guest. Please Login or Register.
Jan 21st, 2018, 03:03am


Conforums Terms of Service | Membership Rules | Home | Search | Recent Posts | Notification | Format Your Message | Installation FAQ


« Previous Topic | Next Topic »
Pages: 1 2  Notify Send Topic Print
 hotthread  Author  Topic: Help: says StartupDir$ has no trailing "\"  (Read 331 times)
Rod
Administrator
ImageImageImageImageImage


member is offline

Avatar

Graphics = Goosebumps!


PM

Gender: Male
Posts: 3151
xx Re: Help: says StartupDir$ has no trailing "\"
« Reply #15 on: Nov 6th, 2017, 03:04am »

I just wonder if providing a new system variable UserData$ might sort some of the issue.

Also a toolbar link to the tutorial and sample files would help.

Currently users are forced to navigate unfamiliar territory and use Explorer to find stuff. I still find the new Windows UAC navigation torturous.

The popup link to the tutorial does not work right now for me. So if we had a reliable link to the tutorial and a reliable link to the sample files the problem might go away.

New convention uses Program Files (x86) directory and %appdata% If you stick with that you can reliably find the tutorial and sample files on the users PC. I don't mess with the %appdata% folder anyway. I see that as a set of resources that should remain intact.

Folks should have project directories for their own code. If they want to use some of the resources that are in %appdata% then giving us UserData$ as a system variable allows easy access to bmp and media resources.
« Last Edit: Nov 6th, 2017, 03:30am by Rod » User IP Logged

CarlGundel
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 155
xx Re: Help: says StartupDir$ has no trailing "\"
« Reply #16 on: Nov 6th, 2017, 07:42am »

What would UserData$ give you that DefaultDir$ doesn't?

-Carl
« Last Edit: Nov 6th, 2017, 07:43am by CarlGundel » User IP Logged

Rod
Administrator
ImageImageImageImageImage


member is offline

Avatar

Graphics = Goosebumps!


PM

Gender: Male
Posts: 3151
xx Re: Help: says StartupDir$ has no trailing "\"
« Reply #17 on: Nov 6th, 2017, 08:21am »

That's the bit that catches folks out. DefaultDir$ changes to your program's directory, UserData$ would ALWAYS point at %appdata%

If I save a program to say c:\basic\project Just BASIC remembers that and the link to %appdata% is lost.

So your links to the tutorial and the sample files would be prepended with UserData$

Perhaps AppData$ makes its purpose clearer.
« Last Edit: Nov 6th, 2017, 08:25am by Rod » User IP Logged

Rod
Administrator
ImageImageImageImageImage


member is offline

Avatar

Graphics = Goosebumps!


PM

Gender: Male
Posts: 3151
xx Re: Help: says StartupDir$ has no trailing "\"
« Reply #18 on: Nov 6th, 2017, 08:56am »

Experimenting a little more I see that it is my preference for opening the most recent file that makes the difference. If I use no file or specify welcome.bas then Just BASIC fires up with DefaultDir$ set to %appdata%.

However if like me you have open most recent file set in preferences then DefaultDir$ will be your last working directory. From that position it is hard to get %appdata% set back up as DefaultDir$ I can change preferences and restart but it would be good to have a toolbar button that set DefaultDir$ back to %appdata%, or took us directly to the tutorial and sample files.

I would still value a new system variable that points to %appdata%. You could use this programmatically to access resources or save files in a managed way in %appdata%
User IP Logged

Stefan Pendl
Administrator
ImageImageImageImageImage


member is offline

Avatar

Let's talk JB ...


Homepage PM

Gender: Male
Posts: 3712
xx Re: Help: says StartupDir$ has no trailing "\"
« Reply #19 on: Nov 12th, 2017, 12:20pm »

The separation of application and data files has been started in Windows 95.
With Windows XP also a separation between each user has been done.
With Windows Vista the separation was finally enforced, which should have been done in XP to prevent these discussions.

ProgramData (%CommonProgramFiles%) contains common data to applications, it is not writeable by regular users.
So it is only applicable for files that are only changed by the installer, but used by many applications from the same software vendor.
User IP Logged

Stefan - Homepage

Remember to read the forum rules board wink

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

Conforums Terms of Service | Membership Rules | Home | Search | Recent Posts | Notification | Format Your Message | Installation FAQ

Just BASIC wiki
Wikispaces

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