Code: Select all
v17.50.0222 - 2017-02-19 17:28
+ Scripting got a new command.
Name: LoadSettings
Action: Restarts XYplorer with different settings.
Syntax: loadsettings path, [flags]
path: Path of new settings. Can be:
- INI file base only: "new" [defaults to "<xydata>\new.ini"]
- INI file only: "new.ini" [defaults to "<xydata>\new.ini"]
- path to new appdata: "E:\path" [defaults to "E:\path\XYplorer.ini"]
- path to new appdata plus INI file: "E:\path\new.ini"
flags: (bit field)
1 = Keep current instance open (else it's closed).
Works even if this is OFF: Configuration | Startup & Exit | Allow multiple instances
Remarks:
- Contrary to "File | Settings Special | Load Configuration..." (which
only loads a new INI file) SC LoadSettings can set a new appdata path.
This means it can load a whole different set of settings (Catalog,
Tags, Keyboard Shortcuts, Tabsets, etc).
This makes it a pretty powerful cool new command!
Examples:
- Load just new INI file:
loadsettings "new.ini"; //INI file <"xydata>\new.ini"
loadsettings "new"; //same as above (extension defaults to *.ini)
- If the path is included this path will be the new appdata path:
loadsettings "E:\XYplorer\appdata_screenshots\"; //default to "XYplorer.ini" in new appdata path
loadsettings "E:\XYplorer\appdata_screenshots"; //IF the path exists: same as above
//If NOT: load "E:\XYplorer\appdata_screenshots.ini"
loadsettings "E:\XYplorer\appdata_screenshots\new.ini"; //"new.ini" in new appdata path
- Keeping the current instance open:
loadsettings "E:\XYplorer\appdata_screenshots\", 1;
loadsettings <curpath>, 1;
! List: Incorrect vertical scrollbar behaviour with huge lists ( > 32767
items). Fixed.
Note that BETA versions are work in progress and might contain fresh bugs. You have been warned.
It's a good idea to backup your complete XYplorer settings (menu File | Settings Special | Backup Application Data Folder...)
before running a new BETA version. This will also help in fixing any fresh bugs.