Page 1 of 1

Access denied to saving settings on closing xyplorer

Posted: 13 Apr 2025 22:48
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?

Re: Access denied to saving settings on closing xyplorer

Posted: 13 Apr 2025 23:30
by highend

Re: Access denied to saving settings on closing xyplorer

Posted: 16 Apr 2025 09:05
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?

Re: Access denied to saving settings on closing xyplorer

Posted: 16 Apr 2025 09:14
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";
    }

Re: Access denied to saving settings on closing xyplorer

Posted: 16 Apr 2025 16:15
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

Re: Access denied to saving settings on closing xyplorer

Posted: 16 Apr 2025 16:16
by highend
Menu - Scripting - Run Script...?

Re: Access denied to saving settings on closing xyplorer

Posted: 16 Apr 2025 16:44
by johnonline1
Thank you very much
It seems to have worked.
Very grateful

Re: Access denied to saving settings on closing xyplorer

Posted: 20 Aug 2025 08:26
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.