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

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
rebr
Posts: 41
Joined: 17 Nov 2013 20:30

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

Post by rebr »

Hi folks!

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

Thanks!

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

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

Post 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
One of my scripts helped you out? Please donate via Paypal

rebr
Posts: 41
Joined: 17 Nov 2013 20:30

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

Post 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!!

Post Reply