Jump to content

powershell not recognising commands

matthewb987

i added the path for php and everything but it doesnt work in powershell, works in cmd.

image.thumb.png.0b93b42d1617713b0321d96b63460a6f.png

Link to comment
Share on other sites

Link to post
Share on other sites

If php is an executable add dotslash in front of it, like in Linux shell commands.

PC Specs - AMD Ryzen 7 5800X3D MSI B550M Mortar - 32GB Corsair Vengeance RGB DDR4-3600 @ CL16 - ASRock RX7800XT 660p 1TBGB & Crucial P5 1TB Fractal Define Mini C CM V750v2 - Windows 11 Pro

 

Link to comment
Share on other sites

Link to post
Share on other sites

On 3/9/2023 at 6:31 AM, matthewb987 said:

i added the path for php and everything but it doesnt work in powershell, works in cmd.

image.thumb.png.0b93b42d1617713b0321d96b63460a6f.png

Yes, like @NelizMastr stated.  Assuming your path is correct, it should look like this in PowerShell:

.\php.exe

 

There is approximately a 117% chance I edited my post.

Please refresh before you reply.

Did a post solve your issue?  Please mark it as the solution!

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×