how to make a .bat to check if the drive is partitioned and formatted

I'm working on some batch files for personal use, I am a complete novice with batch files and I was wondering how I can do these two things. Basically, I have a batch file that when ran, I'd like for it to check if a drive has been partitioned. If not, It'll run fdisk. If it has been partitioned, it'll go to format. If it's already formatted, then it'll just move on to the next operation. i can't find anything on this anywhere.

Anyone have any ideas?


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion