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
IF NOT EXIST C:NUL goto RunFdisk