window10 denies saving file

General discussion for topics related to the FreeBASIC project or its community.
Post Reply
BasicCoder2
Posts: 3906
Joined: Jan 01, 2009 7:03
Location: Australia

window10 denies saving file

Post by BasicCoder2 »

Hi,

I had this problem before with another computer but can't find the relevant posts on the forum.

I have just installed windows 10 on a new computer and can't save FreeBasic files.

C:\FreeBasic\test\test1.bas
You don't have permission to save to this location.
Contact the administrator to obtain permission.
Would you like to save in the xyz folder instead?


Of course like most useless advice it says do x without saying how to do x.

Any ideas how i can take control of the computer?
JohnK_RQ
Posts: 27
Joined: Nov 25, 2019 1:50

Re: window10 denies saving file

Post by JohnK_RQ »

Apparently you are not logged in as an admin?
Or you need to set privileges for c:\.
Typically win does not want users to save to root folder, that is not secure. Rather c:\users\XXXXX\freebasic
OR
setup D: drive partition and save to that root
BasicCoder2
Posts: 3906
Joined: Jan 01, 2009 7:03
Location: Australia

Re: window10 denies saving file

Post by BasicCoder2 »

Hi JohnK_RQ
How do I log in as admin?
I can right click the FBIde icon on the desktop and choose, run as administrator and it works, but on my other win10 computer it just works.
JohnK_RQ
Posts: 27
Joined: Nov 25, 2019 1:50

Re: window10 denies saving file

Post by JohnK_RQ »

Not sure what is going on. You have to be an admin to set your privileges to admin. If you are the only user then you should be an admin.

Check Settings-users and accounts- your account - check you are an admin

You can right click on a folder /drive and set read write privileges to all users, through a series of dialogs.

I know I have compliers on my C drive, that I can run normal under win10, so a matter of settings
Cretin Ho
Posts: 182
Joined: Feb 04, 2021 13:01

Re: window10 denies saving file

Post by Cretin Ho »

Even if you are Admin, you have to run your IDE as Admin in order to save files to this location. You are better configure your IDE to save files to some where else, preferred under your home directory as John said.
jj2007
Posts: 2326
Joined: Oct 23, 2016 15:28
Location: Roma, Italia
Contact:

Re: window10 denies saving file

Post by jj2007 »

Be generous, create a drive F: (F as in FreeBasic)
Cretin Ho
Posts: 182
Joined: Feb 04, 2021 13:01

Re: window10 denies saving file

Post by Cretin Ho »

jj2007 wrote:Be generous, create a drive F: (F as in FreeBasic)
I think this is not needed. A directory where you have permission to write is enough.
jj2007
Posts: 2326
Joined: Oct 23, 2016 15:28
Location: Roma, Italia
Contact:

Re: window10 denies saving file

Post by jj2007 »

Cretin Ho wrote:
jj2007 wrote:Be generous, create a drive F: (F as in FreeBasic)
I think this is not needed. A directory where you have permission to write is enough.
You are right, it's not needed. If you are happier with C:\Users\Cretin ho\Documents\Freebasic, go ahead. I prefer a drive J: for all my programming.
Post Reply