Startup.ini - Non accessible path: Error 76

Things you’d like to miss in the future...
Forum rules
When reporting a bug, please include the following information: your XYplorer version (e.g., v27.90.0047), your Windows version (e.g., Win 11), and your screen scaling percentage (e.g., 125%). We recommend adding your Windows version and screen scaling percentage to your profile or signature. This will make debugging much easier for us.
Post Reply
highend
Posts: 14566
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Startup.ini - Non accessible path: Error 76

Post by highend »

Any non accessible path in the Startup.ini leads to this (e.g. O:\ is currently not mounted):

Code: Select all

[Appdata]
Path="O:\XYplorer\UserProfiles\%username%"


This error pops up 2 times on start (if tags exist):

Code: Select all

Failed to Save Tags
Access is denied
C:\Program Files (x86)\XYplorer 26.20.0205\tag.dat
Now using: Menu - File - Exit (Saving) leads to:

Code: Select all

Save Settings Failed
Access is denied.
C:\Program Files (x86)\XYplorer 26.20.0205\XYplorer.ini
Followed by a Windows dialog box:
1.png
1.png (6.94 KiB) Viewed 871 times
Using Skip here leads to Error 76:
2.png
2.png (13.2 KiB) Viewed 871 times

It would be nice if the path from the startup.ini is not available XY wouldn't even try to write profile data into its own folder (at least not, if that is in a UAC-protected path).
Maybe the default in such a case should be a %APPDATA%\XYplorer_<version number>
so it's
01.) A safe location to write to
02.) It won't overwrite any normal existing ("%APPDATA%\XYplorer") with fresh data

Or even better: Shell out a single dialog box on startup!
The profile path defined in Startup.ini wasn't found, automatic saving is disabled!

and skip all other dialog windows!

We would still be able to save all profile related settings via Menu - File - Settings Special - Save Configuration as...
if that's necessary...
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 64841
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Startup.ini - Non accessible path: Error 76

Post by admin »

Yeah, confirmed. I went for the %APPDATA%\XYplorer_<version number> way. :tup:

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

Re: Startup.ini - Non accessible path: Error 76

Post by highend »

Tried it a few times, looks solid. Thanks! :appl:
One of my scripts helped you out? Please donate via Paypal

Post Reply