为什么无法在Windows 7中运行?

I have installed behat in C:\Behat on a windows7 system. I have added the path C:\Behat\bin to the environment variable 'Path' ....but when I run php bin\behat or php behat I just get an error message 'Could not open input file' However when I run php "C:\Behat\bin\behat" , it works! Can anyone tell me how to fix this. Thanks

To run php bin\behat you would have to already be in the C:\Behat folder. To run php behat you would have to already be in the C:\Behat\bin folder.

Your search path is only good for the php executable, not its parameter list.