Automaticly Copy Zend/Symfony Library to Project

Zend Framework Batch file

@echo off
:MENU
ECHO Zend will be copied to "%CD%\library"
SET /P M=Type PRESS 1 to continue or any key to EXIT:
IF %M%==1 (	GOTO IMPORT ) ELSE ( GOTO :EOF )
:IMPORT
xcopy /E "ABSOLUTE_PATH_TO_Zend_Library" "%CD%\library"
GOTO :EOF

Symfony Framework Batch file

@echo off
:MENU
ECHO Symfony will be copied to "%CD%\lib\vendor"
SET /P M=Type PRESS 1 to continue or any key to EXIT:
IF %M%==1 (	GOTO IMPORT ) ELSE ( GOTO :EOF )
:IMPORT
xcopy /E "ABSOLUTE_PATH_TO_Symfony_Library" "%CD%\lib\vendor\"
GOTO :EOF

Example :

@echo off
:MENU
ECHO Zend will be copied to "%CD%\library"
SET /P M=Type PRESS 1 to continue or any key to EXIT:
IF %M%==1 (	GOTO IMPORT ) ELSE ( GOTO :EOF )
:IMPORT
xcopy /E "D:\xampp\ZendFramework\library" "%CD%\library"
GOTO :EOF

How Does It Work ?

1 . Save batch as what_you_want.bat, example zendme.bat then add to windows Path .

2 . Go to your project “CD My_project” and type “Batch_file_name”

Comments (1)

mohamedJuly 29th, 2011 at 5:05 pm

good work congratulations

Leave a comment

Your comment