🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.lang.basic
Article #468

Re: Command-line operable FDISK substitute

#468
From: Andrew Castles
Date: Thu, 14 Dec 1995 17:52
36 lines
1706 bytes
steven@ucla.edu (Steve Andres) wrote:

>Does anyone have a command line FDISK substitue?  I'm trying to write a 
>workstation rebuild utility for a computer lab and it needs to run a batch file 
>that will delete and recreate the partition, format it, and unzip a file.

>The formatting and unzipping I can take care of, but since FDISK requires user 
>input, that part can't be automated.  Thus, the user (usually ignorant to the 
>intricacies of FDISK) must delte and recreate the partition.

If fdisk will be taking the same commands each time you run it then
you could probably get round your problem like this:

1.  Create a text file (commands.txt) and put into it all the commands
that you would have to type into fdisk by hand exactly as you would
type them, for example

3
1
etc

Don't forget to include all the return characters and escape
characters that you need.

2.  Run call fdisk from your command prompt using:

	fdisk < commands.txt

to run fdisk but take input to the program from the file called
commands.txt

That should do it for you.

Hope I was of some help.

Andrew Castles
Technical Details
Message-ID: <4apoac$3sm@bsdi002.britain.eu.net>
Path: arc1-ca.pugleaf.net!peer-news.britain.eu.net!uknet!news@Britain.EU.net
References: <4a4v4j$1n8p@tako.info.ucla.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!peer-news.britain.eu.net!uknet!news@Britain.EU.net
From: a.castles@kainos.com (Andrew Castles)
Newsgroups: alt.lang.basic,comp.lang.basic.misc,alt.lang.asm,comp.lang.asm.x86,comp.lang.asm370,comp.lang.c,comp.lang.c++
Subject: Re: Command-line operable FDISK substitute
Date: Thu, 14 Dec 1995 17:52:52 GMT
Organization: EUnet-GB distributed news service, +44 227 266466
Distribution: inet
Message-ID: <4apoac$3sm@bsdi002.britain.eu.net>
References: <4a4v4j$1n8p@tako.info.ucla.edu>
NNTP-Posting-Host: 193.195.13.63
X-Newsreader: Forte Free Agent 1.0.82