Unloading all scripts - Weird Error - 05/04/04 01:38 PM
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:
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 )
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 )