I get the following when running yiic.php from windows command line
C:Program FilesApache Software FoundationApache2.2yii_sourceframework>php -
c C:Windowsphp.ini yiic.php shell ../../htdocs/blog/index.php
PHP Fatal error: Cannot redeclare class Yii in C:Program FilesApache Software
FoundationApache2.2htdocsyii_testframeworkyii.php on line 29
Go to the parent directory to run this command since you are using relative path to include yii.php. It assumes the current directory is the one where you execute the command.
Your php is enabled with some extensions (as listed in the error message) that could not be found. Try to modify your php.ini to disable those extensions first.