Page 1 of 1

Change New Items Folder Default

Posted: 01 Apr 2022 00:09
by breno
How do I Change the path of New Items Folder?

Re: Change New Items Folder Default

Posted: 01 Apr 2022 00:11
by highend
Help file - Advanced Topics - Admin Settings

Re: Change New Items Folder Default

Posted: 01 Apr 2022 20:10
by breno
I made an Admin.ini file as shown in attachments.
but did not work.
duvida.png
duvida.png (50.28 KiB) Viewed 1562 times

Re: Change New Items Folder Default

Posted: 01 Apr 2022 20:21
by highend

Code: Select all

$adminIni = "<xypath>\admin.ini";
    if (exists($adminIni) == 1) { text readfile($adminIni); }
    else { text "admin.ini file does not exist"; }
Put this into Menu - Scripting - Run Script
and show the full output

Re: Change New Items Folder Default

Posted: 01 Apr 2022 20:38
by breno
Here the output

Re: Change New Items Folder Default

Posted: 01 Apr 2022 20:57
by highend
Apart from that I don't understand why the new root folder for "New Items" should be in an ebook folder...

Finally, do the same with this script:

Code: Select all

$adminIni = "<xypath>\admin.ini";
    $content  = readfile($adminIni);
    $path     = gettoken($content, 2, "=", "t");
    if (exists($path) == 2) { text "Great, path exists!" . <crlf 2> . listfolder(gpc($adminIni, "path"), , , <crlf>); }
    else { text "Bad, path does not exist"; }

Re: Change New Items Folder Default

Posted: 01 Apr 2022 22:40
by jupe
You haven't put a [Paths] section header in the ini, also why does it look there is a tab after \backup
           
?

Re: Change New Items Folder Default

Posted: 01 Apr 2022 23:29
by breno
Thank you guys...

the head [Paths] really was missing.
Now it´s working ok