no no no...
batch file is :
@echo off
format d:

write it in a txt file and save as x.bat,that's OK, than u should double click x.bat,
after that ,congratulations,u succeed