Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $scriptPath = $script:MyInvocation.MyCommand.Path
- $CD = Split-Path $scriptpath #Get the current directory of the script that is located
- Split-Path : Cannot bind argument to parameter 'Path' because it is null.
- At line:1 char:18
- + $CD = Split-Path $scriptpath #Get the current directory of the script ...
- + ~~~~~~~~~~~
- + CategoryInfo : InvalidData: (:) [Split-Path], ParameterBindingValidationException
- + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.SplitPathCo
- mmand
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement