Windows 8 CreateProject improvement

Heya,

I am new to the forum, just started toying around with cocos2d-x not long ago and now tried Cocos2d-x for Windows 8.

I have edited the CreateProject.bat file to be more friendly for use, it will automatically set the correct PROJECT_NAME and PROJECT_DIR if placed in the correct folder, therefore no need to edit the bat file for every project, but only for the COCOS2D_DIR.

CodePaste link: http://codepaste.net/6ni61t

code:

::Please Modify the variables into a suitable
::More Info visit: http:://www.cocos2d-x.org
@echo off&setlocal enableextensions
:: retrieving name of current directory
for * in (.) do set PROJECT_NAME=~n*
:: adding safety factor for no directory, i.e a drive
if not defined PROJECT_NAME set PROJECT_NAME=CD:\=

:: set PROJECT_NAME=helloworld-cocos2d
set COCOS2D_DIR=d:2dx-win8
set PROJECT_DIR=CD

xcopy /S “COCOS2D_DIR” “PROJECT_DIR
xcopy /S”COCOS2D_DIR2D" “PROJECT_DIR2D
xcopy /S”COCOS2D_DIR" “PROJECT_DIR
xcopy /S”COCOS2D_DIR2dx" “PROJECT_DIR2dx
xcopy /S”COCOS2D_DIR" “PROJECT_DIR
xcopy /S”COCOS2D_DIRitignore" “PROJECT_DIR
xcopy /S”COCOS2D_DIR" “PROJECT_DIRPROJECT_NAME\Classes\"
xcopy /S “COCOS2D_DIR\HelloWorld\AppDelegate.cpp” “PROJECT_DIR\PROJECT_NAME”
xcopy /s “COCOS2D_DIR\HelloWorld\AppDelegate.h” "PROJECT_DIR\PROJECT_NAME%”

Hope it helped someone.