Page 1 of 1

Help - How to get the loaded catalog's name?

Posted: 24 Apr 2017 19:38
by rebr
Hi folks!

Is there anyway to get the current loaded catalog's name?

Thanks!

Re: Help - How to get the loaded catalog's name?

Posted: 24 Apr 2017 20:25
by highend
The file name + path?

Sure...

Code: Select all

    $tmpIni = "%TEMP%\dummy.ini";
    savesettings , $tmpIni;
    $curCatalog = getkey("1", "mruCatalogs", $tmpIni);
    delete 0, 0, $tmpIni;
    text $curCatalog;
1. The path is relative to <xydata>
2. You need XY v17.80.0012 or later

Re: Help - How to get the loaded catalog's name?

Posted: 05 May 2017 20:55
by rebr
highend wrote:The file name + path?

Sure...

Code: Select all

    $tmpIni = "%TEMP%\dummy.ini";
    savesettings , $tmpIni;
    $curCatalog = getkey("1", "mruCatalogs", $tmpIni);
    delete 0, 0, $tmpIni;
    text $curCatalog;
1. The path is relative to <xydata>
2. You need XY v17.80.0012 or later
Thank you soooo much!!