Here’s some useful batch script for windows users:
%COMSPEC% /k %SYSTEMDRIVE% && cd %USERPROFILE%
Assuming that your user profile is stored on the system drive, this will open the command prompt to your home directory.
Here’s another one:
ant > .log 2>&1
This redirects stdout and stderr to the same log file.