Hi all, I have a question about finishing a script properly. I am using my login script at home with Win XP and I have no problem whatsoever with it, but I recently started a job who are still using Win98 clients. On all Win98 PC's when i run the script 2 or 3 times without booting I get all sorts of errors. (BSOD, out of system resources, Fatal errors, that sorta stuff). I had a feeling it had something to do with the script not freeing up resources after running, somehow.
Then I remembered some code I saw a long time ago who cleared the variables at the end of the script, like:
$Variable1=""
$Variable2=""
That instantly solved my problem, by clearing about 100 vars at the end of the script.
I can't find any topic addressing how to properly end a script. Is it the poor memory management of Win98 who is causing the reservation of memory? Are there any best practices on how to 'end' a script?
_________________________
Ruud is my hero