Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site cyb-eng.UUCP Path: utzoo!linus!philabs!prls!amdimage!amdcad!amd!vecpyr!lll-crg!seismo!ut-sally!oakhill!cyb-eng!bc From: bc@cyb-eng.UUCP (Bill Crews) Newsgroups: net.wanted.sources,net.micro.pc Subject: Re: A floppy-only MS-DOS formatter? Message-ID: <607@cyb-eng.UUCP> Date: Sun, 28-Jul-85 20:22:39 EDT Article-I.D.: cyb-eng.607 Posted: Sun Jul 28 20:22:39 1985 Date-Received: Thu, 1-Aug-85 07:12:11 EDT References: <438@moncol.UUCP> Organization: Cyb Systems, Austin, TX Lines: 16 Xref: linus net.wanted.sources:1123 net.micro.pc:4467 > Does anyone, therefore, have or know of a utility which will only allow > drive A: (and B: ?) to be formatted? What I would probably do is write a quicky C program to ask for the drive letter, make sure it is A: or B: (or whatever you like), and either put out a usage message or exec IBM's format.com. Depending on your choice of C compiler, the function to be called to perform the exec might be exec(), fork(), or system(). If you have more than one, I would recommend system(), since then all you have to do is pass a DOS command line to it. That's easy. -- / \ Bill Crews ( bc ) Cyb Systems, Inc \__/ Austin, Texas [ gatech | ihnp4 | nbires | seismo | ucb-vax ] ! ut-sally ! cyb-eng ! bc