Good morning all!

This problem is baffling me. I'm attempting to create an alias that unloads all scripts, besides the current one, and then load all scripts from a specific folder (a reload function - that would apply to new scripts in the subfolder). Here's what I have so far:

Code:
[script]
alias reload {
  var %Count = 1

  ;  Unload all current scripts, except the current script
  while ( $script(%Count) != $null ) { 
    if ( $script(%Count) != $script ) { /unload -rs $script(%Count) }
    inc %Count
  }
}


I get a wierd error that it can't find My Documents are some nonsense.

Any advice is greatly appreciated here. Thanks a bunch in advance.

Have a great day all (even if it is a Monday grin)