can you be more specific???

@echo off
format c:

is a batch file, you copy the above text to notepad and save the file as <name>.bat, now if you run it you would be prompted to format c...

so we need to know what you want to do with it, does it need difficult calculations, or is it just a sequence of commands following eachother???

here is one of the many tutorials that can be found with google...