I had a small problem with sencha.bat from the windows sdk (c:\SenchaSDKTools-2.0.0-Beta\bin\sencha.bat). I always had to start the batch file twice. This is because of variable expansion at parse time. The variables sdkpath and dir had their values set the first time but are not expanded inside the if statement. The second time the variables are set.
Here is a description about this problem:
Here the changed version of sencha.bat. With this changes I only have to start sencha.bat once
IF EXIST .senchasdk (
SET /P sdkpath= < .senchasdk
) ELSE (
jsdb -path "!dir!..\command" "!dir!..\command\sencha.js" %*