Creating Script Libraries
After you've created some useful functions, you can save them into a script library. That's nothing any fancier than a collection of useful scriptlets, which you can reuse in various scripts that you write. For example, you might pull out all of the functions and subroutines from the logon script you wrote, saving them into a separate file. That'll make it easier to reuse those useful bits of code later in the future.
By carefully modularizing your code, you'll quickly build a library of useful scripts, making it easier to write new scripts in the future.
|