-
Notifications
You must be signed in to change notification settings - Fork 0
Powershell ps1 Import
nfriedrich edited this page Oct 11, 2019
·
2 revisions
To import a function into Example.ps1, with the directory layout:
c:\Example.ps1
c:\functionFile.ps1
Where functionFile.ps1 is:
function exFunc
{
... Function Body ...
}
Add to Example.ps1:
# This is the import
. .\functionFile.ps1
# and run the function with
exFunc