Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2019
108
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 locatedSplit-Path : Cannot bind argument to parameter 'Path' because it is null.
  3. At line:1 char:18
  4. + $CD = Split-Path $scriptpath #Get the current directory of the script ...
  5. + ~~~~~~~~~~~
  6. + CategoryInfo : InvalidData: (:) [Split-Path], ParameterBindingValidationException
  7. + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.SplitPathCo
  8. mmand
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement