To use ant in windows, you need to download it and should configure the windows environment variable.
Download file here,
Steps to set path:
Download the latest ant zip file from apache ant official website and unzip it to the folder you want to store ant.
Example:
To add the ANT_HOME as the windows environment variable. Please Navigate to My Computer -> right click My Computer -> Properties -> Advanced system setting -> Environment Variables...
Update the Path variable, Append the %ANT_HOME%\bin to the end, so that you can run the ant's command anywhere.
Now path added successfully to verify that go to command prompt and type ant -version and click enter. You see the message like give an image.