Quantcast
Channel: PowerShell.org » All Posts
Viewing all articles
Browse latest Browse all 13067

Reply To: Posh Function – Schedule it as a Task?

$
0
0

For stuff like that I just dot source my script. If it’s not a real module and I just need it to stay resident in memory.

a single dot followed by a space followed by a dot backslash and the file name. . .

. .\get-freespace.ps1

Much faster than doing all the work to turn it into a module. However I like what you said better Don. Just pass the parameters it needs from the command line.

-VERN


Viewing all articles
Browse latest Browse all 13067

Trending Articles