dra*_*fly 1 powershell powershell-2.0
我刚刚安装了PHP和Yii Framework.它工作正常,我玩CMD.但过了一段时间我转而使用PowerShell ISE.我导航到Yii文件夹:
cd C:\ dev\yii-1.1.9.r3527\framework
我发出命令:
yiic.bat
我收到一个错误:
PS C:\dev\yii-1.1.9.r3527\framework> yiic.bat
The term 'yiic.bat' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:9
+ yiic.bat <<<<
+ CategoryInfo : ObjectNotFound: (yiic.bat:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Run Code Online (Sandbox Code Playgroud)
但是,当我键入:
./yiic.bat
进入PowerShell窗口,它工作正常.
有没有一种方法来aviod打字./我每次运行时BAT文件?
| 归档时间: |
|
| 查看次数: |
2979 次 |
| 最近记录: |