I downloaded sencha touch
and extracted into a folder.
And then I downloaded the sdk tool
and installed it.
Used windows 7 cmd, cd to the sencha touch folder, and then run sencha generate app myapp ../myapp, then it shows a red error message "The current working directory is not a valid SDK directory. Please 'cd' into a SDK directory before executing this command."