Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
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?
0 · ·