Subject |
Re: Run As Administrator |
From |
michael <michael@itntgroup.com.au> |
Date |
Wed, 01 May 2019 22:41:33 -0400 |
Newsgroups |
dbase.getting-started |
Hi Bruce/Andy,
I would rather run it in my own private directory c:\RT9999 and I use Set directory for that but it seems that if I dont run it as administrator it looks for the program in the windows32\system folder regardless.
So, then If I run as Administrator then windows wont execute it in the startup folder.
So, what i am asking is why does dbase need to run as Administrator?
Can we work around it? I already set directories depending on users.
Regards,
Michael.
Bruce Beacham Wrote:
> On 01/05/2019 09:35, Andy Taylor wrote:
> > michael,
> >
> > I have the following 3 lines built in to the startup app object in my apps.
> > so "this" refers to "app" but you could store it anywhere.
> >
> > this.folder = set("directory") // current folder pointer
> > this.exeFolder = LibFiles::getFolderName(program(0)) // current program folder
> > if this.folder # this.exeFolder; cd (this.exeFolder); endif // move to the exe folder location
>
> Is that wise? If you've installed to C:\Program Files (x86)\... then
> you are creating temporary files and other junk in a sensitive - and
> protected - part of the file system.
>
> That's what Documents is for, or (if you are developing) your own
> private directory off the C:\ root could be used. But not C:\Program
> Files...
>
>
> Bruce Beacham
>
|
|