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

Howdy, Stranger!

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

Categories

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

James1982James1982 Posts: 1Member
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?

Comments

Sign In or Register to comment.