Access denied to saving settings on closing xyplorer

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
johnonline1
Posts: 4
Joined: 12 Mar 2025 21:36

Access denied to saving settings on closing xyplorer

Post by johnonline1 »

My xyplorer will not save settings. It comes up with a warning, “access denied. …….XYplorer..ini”, but no explanation as to why.
This means that if you for example add bookmarks to the toolbar, these are not saved when you close xyplorer.
See screenshots of warning messages attached
I have tried uninstalling and reinstalling it but this does not work.
What does work is: opening it by right clicking xyplorer in the toolbar, then clicking run as administrator but you have to remember to do this every time.
I contacted support but they cannot suggest anything different.
Currently I am running version 26.80.0500 and I have a rookie licence pro for 26.80
Does anyone on the forum have an answer please?
Attachments
Screenshot 2025-04-13 214007.jpg
Screenshot 2025-04-13 214007.jpg (15.47 KiB) Viewed 2764 times
Screenshot 2025-04-13 214050.jpg
Screenshot 2025-04-13 214050.jpg (38.06 KiB) Viewed 2764 times

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

Re: Access denied to saving settings on closing xyplorer

Post by highend »

One of my scripts helped you out? Please donate via Paypal

johnonline1
Posts: 4
Joined: 12 Mar 2025 21:36

Re: Access denied to saving settings on closing xyplorer

Post by johnonline1 »

Thank you
I did the following as suggested in your link to the previous post (copied) (NB I have windows 10 not 11) :

"Your installation folder does not contain a Startup.ini file?
Menu - Go - Go to application folder
Create that file, insert this as content:
Code: Select all
[Appdata]
Path=%appdata%\XYplorer
Restart XY"

The result was that on restarting it told me that I did not have a licence (although I do) and would not run at all .

I deleted the startup.ini file and it was OK again but I still have to run it as administrator.

Any further suggestions?

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

Re: Access denied to saving settings on closing xyplorer

Post by highend »

Run this script:

Code: Select all

$curAppdata = <xydata>;
    $newAppdata = "%APPDATA%\XYplorer";

    setting "BackgroundFileOps", 0;
    if ($curAppdata UnLikeI $newAppdata) {
        $startupContent = <<<'>>>'
            [Appdata]
            Path=%appdata%\XYplorer
        >>>;
        $startupContent = regexreplace($startupContent, "^[ \t]+");

        writefile("<xypath>\Startup.ini", $startupContent, , "utf8");
        copyto $newAppdata, "$curAppdata\*", , 2, 2, 2, 1, 0, 0, 1, 0, 0;
        exit "nr";
    }
One of my scripts helped you out? Please donate via Paypal

johnonline1
Posts: 4
Joined: 12 Mar 2025 21:36

Re: Access denied to saving settings on closing xyplorer

Post by johnonline1 »

I don't have much experience of this "under-the-bonnet" stuff - Does that mean copy the script and paste it into the command prompt window? I could do that

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

Re: Access denied to saving settings on closing xyplorer

Post by highend »

Menu - Scripting - Run Script...?
One of my scripts helped you out? Please donate via Paypal

johnonline1
Posts: 4
Joined: 12 Mar 2025 21:36

Re: Access denied to saving settings on closing xyplorer

Post by johnonline1 »

Thank you very much
It seems to have worked.
Very grateful

Ayush34
Posts: 1
Joined: 17 Aug 2025 13:13

Re: Access denied to saving settings on closing xyplorer

Post by Ayush34 »

Hi,
The issue occurs when XYplorer is unable to save settings upon closing, often resulting in an Access Denied message. This typically happens due to insufficient file permissions or restricted write access in the configuration folder. It can also be caused by running XYplorer without administrative privileges or by antivirus/security software blocking changes. To resolve this, ensure that XYplorer has full write access to its settings folder, try running it as an administrator, and verify that no security software is preventing the program from modifying its configuration files.

Post Reply