Subj : Re: Script that switches out text on certain lines To : All From : Jonathan de Boyne Pollard Date : Wed Mar 06 2002 10:15 am From: Jonathan.de.Boyne.Pollard@f3.n342.z1.cereal.mv.com (Jonathan de Boyne Pollard) Subject: Re: Script that switches out text on certain lines From: Jonathan de Boyne Pollard BJ> The input from me should alter the line in the unattend.txt BJ> file [...] where says BJ> COMPUTERNAME= This much is easy to do with 4DOS, the command interpreter for DOS, because 4DOS has a built in INPUT command: SET COMPUTERNAME=DefaultComputerName INPUT /E "What computer name would you like, Bjorn?" %%COMPUTERNAME ECHO COMPUTERNAME=%COMPUTERNAME% >> UNATTEND.TXT ( The initial SET command and the /E option to INPUT are there merely to make things a little prettier. ) BJ> Of course it should replace an old computer name if there is one in the file. This is more difficult, without resorting to using a Unix style command interpreter, and I note that none of the other replies posted have satisfied this requirement, either. (-: -- |Fidonet: Jonathan de Boyne Pollard 1:342/3 | | Origin: The Cereal Port BBS (603)899-3335 199.125.78.133 (1:132/152) --- # Origin: (1:132/152.4) * Origin: Baddog BBS (1:218/903) .