I'm compartmentalizing my file storage, so I can make and share scripts that are easy to install/uninstall, and each script will keep track of it's data in it's own file. The file system should look a little like this:
Code
$mircdir
   Scripts
      KubosKubot-Scripts
         core.KubosKubot
            core.KubosKubot.mrc
            core.config.KubosKubot.ini
         plugin.Example
            plugin.Example.mrc
            plugin.config.Example.ini


What I want is to make an alias inside core.KubosKubot.mrc that can read and write to ini files dependent on where the alias trying to write is at. For example,

Code
core.KubosKubot.mrc
alias kubot.ReadIni {
   set %temp $isalias($callingAlias).fname
   return $readini($mircdir\scripts\KubosKubot-Scripts\ $+ $remove(%temp, .mrc) $+ \ $+ $replace(%temp, .mrc, .ini), Section, Item)


I'm not at my PC, I'm on my lunch at work, so I can't check to see if I used $remove and $replace correctly.