Change New Items Folder Default

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
breno
Posts: 8
Joined: 15 Mar 2022 14:20

Change New Items Folder Default

Post by breno »

How do I Change the path of New Items Folder?

highend
Posts: 14571
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Change New Items Folder Default

Post by highend »

Help file - Advanced Topics - Admin Settings
One of my scripts helped you out? Please donate via Paypal

breno
Posts: 8
Joined: 15 Mar 2022 14:20

Re: Change New Items Folder Default

Post by breno »

I made an Admin.ini file as shown in attachments.
but did not work.
duvida.png
duvida.png (50.28 KiB) Viewed 1560 times

highend
Posts: 14571
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Change New Items Folder Default

Post 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
One of my scripts helped you out? Please donate via Paypal

breno
Posts: 8
Joined: 15 Mar 2022 14:20

Re: Change New Items Folder Default

Post by breno »

Here the output
Attachments
duvida 2.png
duvida 2.png (12.98 KiB) Viewed 1554 times

highend
Posts: 14571
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Change New Items Folder Default

Post 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"; }
One of my scripts helped you out? Please donate via Paypal

jupe
Posts: 3292
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Change New Items Folder Default

Post by jupe »

You haven't put a [Paths] section header in the ini, also why does it look there is a tab after \backup
           
?

breno
Posts: 8
Joined: 15 Mar 2022 14:20

Re: Change New Items Folder Default

Post by breno »

Thank you guys...

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

Post Reply