Minimal usage would be something like:

#Load AlphaFS, method 1
Import-Module -Name 'C:\AlphaFS\AlphaFS.dll'

#Load AlphaFS, method 2

#Use AlphaFS function

If you'd prefer a shorter reference, assign the full namespace to a PowerShell variable:

#Assign namespace to a variable
$AlphaFSDir = Alphaleonis.Win32.Filesystem.Directory

And then use the "short" form:

Last edited Dec 17, 2014 at 5:21 PM by Yomodo, version 16