[comp.sys.amiga.tech] reformat of hard drives

jtmorgan@sun.udel.edu (James Morgan) (08/25/90)

Is there any thing that can be done to put some sort of
prompt in the way of a person that is trying to reformat
the hard drive of an amiga?

They are doing this from the desktop environment and all we
want to do is to put  some sort of prompt in the stream that
will call attention to what they are attempting to do.

Any help would be appreciated.

new@ee.udel.edu (Darren New) (08/27/90)

In article <13618@sun.udel.edu> jtmorgan@sun.udel.edu (James Morgan) writes:
>Is there any thing that can be done to put some sort of
>prompt in the way of a person that is trying to reformat
>the hard drive of an amiga?

I would think you could pretty easily rename Format to OldFormat and write
a new Format program which flashes the screen purple with green stripes
before starting the OldFormat program.    -- Darren

-- 
--- Darren New --- Grad Student --- CIS --- Univ. of Delaware ---

forgeas@swinjm.UUCP (Jean-Michel Forgeas) (09/04/90)

>In article <13618@sun.udel.edu> jtmorgan@sun.udel.edu (James Morgan) writes:
>>Is there any thing that can be done to put some sort of
>>prompt in the way of a person that is trying to reformat
>>the hard drive of an amiga?

If you Execute() the Format command with stdin redirected to NIL:, it
does not ask "insert disk to be initia........" before start. So you
could make a program which Execute() Format after your verifications:

main( argc, argv )
{
    .... find volume name with argv
    .... and rebuild the entire arg string

    if (volume == harddrive || what_you_want)
        {
        printf( "Do you really want... ?\n" );
        scanf( ....., answer );
        if (answer == no) return;
        }
    else{
        if (nil = Open( "NIL:",...))
            {
            sprintf( tmpbuf, "SYS:System/Format %ls\n", entire_arg_string );
            Execute( tmpbuf, nil, stdout );
            Close( nil );
            }
        }
}

--
                                     \___/
Jean-Michel Forgeas                   \-/
cbmvax!cbmehq!cbmfra!swinjm!forgeas    |    The Software Winery
                                      -^-
                           And, where is the universe ?