Originally Posted By: iso
Each file (ie.kix, env.kix.. ) contains a function. Prior to this piece of code, these files have already been called and loaded into memory. Here I am trying to call the functions within the files. CALL ENV works if I hard code it in, however CALL $EN doesn't seem to work. The stripping is to retrieve the function names only.

Thanks for the clarifications!


I'm a little confused.

You do not use CALL to execute a function. If you have CALLed a script to load a function, then you simply use the function name to execute the function.

After re-reading this thread through I am less confused, I think I know what you are trying to do:
 Code:
RUN_ENABLED("C:\Docume~1\iso\Desktop\KIX\Development\enabled")
  
Function RUN_ENABLED($path)
  Dim $runenabled
  $runenabled = Dir("$path\*.*")
  While Not @ERROR
    If $runenabled <> "." AND $runenabled <> ".."
      Call $path+"\"+$runenabled
      $=Execute(Split($runenabled,".")[0]+"()")   ; Magic here.
    EndIf
    $runenabled = Dir()
  Loop
EndFunction


The line '$=Execute(Split($runenabled,".")[0]+"()")' is the bit of magic that you need to execute the loaded function.