how to fix set-location error

adem kürşat özaba 0 Reputation points
2024-11-18T16:19:55.4166667+00:00

PS C:\WINDOWS\system32> cd C:\Program Files\Interception

Set-Location : A positional parameter cannot be found that accepts argument 'Files\Interception'.

At line:1 char:1

  • cd C:\Program Files\Interception
  • 
        + CategoryInfo          : InvalidArgument: (:) [Set-Location], ParameterBindingException
    
        + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.SetLocationCommand
    
    

my error about game and its solution is there :

https://github.com/Tebros/InterceptorCLI/blob/master/README.md

Windows for business | Windows Server | User experience | PowerShell
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Rich Matheisen 47,901 Reputation points
    2024-11-18T19:21:18.03+00:00

    There's a space in the path string. That's causing the command to see two positional parameters: C:\Program and Files\Interceprion.

    To fix that, place the entire path name in single - or double-quotation marks. E.g.,

    cd "C:\Program Files\Interception"

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.