i want to build some libraries of routines to call from other powershell scripts. from what i've gathered, you can include something like...
at the start of a script to load the other script, making any functions in the file available to the currently running script. however, i've not seen any examples of using a relative path for the include file. i've tried various things to no avail, including...
how do i do this? i'm using powershell v1.0.
thanks,
glenn
Code:
. c:\folder\script.ps1
at the start of a script to load the other script, making any functions in the file available to the currently running script. however, i've not seen any examples of using a relative path for the include file. i've tried various things to no avail, including...
Code:
.\script.ps1
. .\script.ps1
. script.ps1
how do i do this? i'm using powershell v1.0.
thanks,
glenn