Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. $scriptPath = $script:MyInvocation.MyCommand.Path
  2. $CD = Split-Path $scriptpath #Get the current directory of the script that is located
  3. Split-Path : Cannot bind argument to parameter 'Path' because it is null.
  4. At line:1 char:18
  5. + $CD = Split-Path $scriptpath #Get the current directory of the script ...
  6. + ~~~~~~~~~~~
  7. + CategoryInfo : InvalidData: (:) [Split-Path], ParameterBindingValidationException
  8. + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.SplitPathCo
  9. mmand
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement