yiic shell ../index.php dont solve my problem

I try to execute the RBAC autoinstall script.

1. I write and save a RbacCommand.php file here:

C:\Program Files\Zend\Apache2\htdocs\myproject\protected\commands\shell

2. My Yii framework is place here:

C:\Program Files\Zend\Apache2\htdocs\yii-1.1.6.r2877\framework

3. I try to execute in cmd command line:

C:\Program Files\Zend\Apache2\htdocs\myproject\protected\yiic shell

And the system reply a message:

Error: index.php does not exist or is not an entry script file.

I try to fix the problem with: yiic shell ../index.php

later…y try again to execute : yiic shell and have the same message problem.

Error: index.php does not exist or is not an entry script file.

Any idea to solve this mistake… thanks, best regards.

PD:

My yiic.bat script contained a config:




@echo off


rem -------------------------------------------------------------

rem  Yii command line script for Windows.

rem  This is the bootstrap script for running yiic on Windows.

rem -------------------------------------------------------------


@setlocal


set BIN_PATH=%~dp0


if "%PHP_COMMAND%" == "" set PHP_COMMAND=php.exe


"%PHP_COMMAND%" "%BIN_PATH%yiic.php" %*


@endlocal



My yiic.php script config:




<?php


// change the following paths if necessary

$yiic=dirname(__FILE__).'/../../yii-1.1.6.r2877/framework/yiic.php';

$config=dirname(__FILE__).'/config/console.php';


require_once($yiic);

?>



Did you find a way to work around this problem? i.e. to create the roles without using the shell? can It be done with Gii? Please let me know, as I have had same problem

Yeah, this command at work for me:

yiic shell ../protected/config/main.php

I have the same problem :(