Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
14
Task/Include-a-file/PowerShell/include-a-file.psh
Normal file
14
Task/Include-a-file/PowerShell/include-a-file.psh
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<#
|
||||
A module is a set of related Windows PowerShell functionalities, grouped together as a convenient unit (usually saved in a
|
||||
single directory). By defining a set of related script files, assemblies, and related resources as a module, you can
|
||||
reference, load, persist, and share your code much easier than you would otherwise.
|
||||
#>
|
||||
|
||||
Import-Module -Name MyModule
|
||||
|
||||
|
||||
<#
|
||||
When you dot source a script (or scriptblock), all variables and functions defined in the script (or scriptblock) will
|
||||
persist in the shell when the script ends.
|
||||
#>
|
||||
. .\MyFunctions.ps1
|
||||
Loading…
Add table
Add a link
Reference in a new issue