Saving ini settings

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
klownboy
Posts: 4109
Joined: 28 Feb 2012 19:27

Saving ini settings

Post by klownboy »

I wouldn't call this a bug, but I figured I'd point it out. If you don't double quote the ini file name when savings settings for an ini file, specifically SC savesettings, XYplorerUserKen.ini the result will be XYplorerUserKenini with no dot. The examples in the help file do show the double quotes but I wanted to point out they're important here. I had no spaces in the ini file name in my test examples. I noticed this when saving settings for a specific XY ini file that I use in a second instance of XYplorer. Thanks.
Windows 11, 22H2 Build 22621.1555 at 100% 2560x1440

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

Re: Saving ini settings

Post by admin »

[moved to tips and tricks]

You know, actually any string should be quoted in scripting, and this is no exception. :)

klownboy
Posts: 4109
Joined: 28 Feb 2012 19:27

Re: Saving ini settings

Post by klownboy »

Sorry Don, I should have put this in Tips. I didn't have any spaces in the file name and I provided the full path as well which also had no spaces, so I initially though it was odd, but as you say and the help file states, use quotes. Thanks.
Windows 11, 22H2 Build 22621.1555 at 100% 2560x1440

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

Re: Saving ini settings

Post by admin »

Let me add that I personally and silently often regretted that I followed that bizarre PHP design choice to use the dot (.) as string concatenator. I really should have taken the plus (+) or the ampersand (&). Well, too late.

Post Reply