1. Download Apache ANT
2. Download Force.com Migration Tool
3. Setup Classpath in Environment Variables.
4. Unzip the Force.com Migration Tool and add “ant-salesforce” Jar file to ANT lib folder.
5. From the jre lib folder copy paste “tool” Jar file to ANT lib folder.
6. Configure “build.xml” and “build.properties”.
7. In cmd navigate to the folder which contains the package.xml and other resource that needs to be deployed and enter command “ant deployMENT*” (* target name from build.xml)