'ASK TEXT="Archive setup has been configured*nfor use during this session only.*n*nThis ARexx script can enable*npermanent archive support now,*nhowever, it will alter the*nsystem user-startup file.*n*nNote(Floppy only):*n*nThis will alter your Workbench or*nBoot disk and is only recemmended*nfor 2 drive systems.*n" BUTTONS="_Alter User-Startup|_Exit"'
RES = RESULT
IF RES = 0 THEN
DO
IF exists('S:User-Startup') = 1 then
DO
Open(output, 'S:User-Startup', A)
Writeln(output,';BEGIN DiskMAGIC')
Writeln(output,'ASSIGN C: ' || MTPATH || 'C ADD')
Writeln(output,';END DiskMAGIC')
Close(output)
END
ELSE
DO
Open(output, 'S:User-Startup', W)
Writeln(output,';BEGIN DiskMAGIC')
Writeln(output,'ASSIGN C: ' || MTPATH || 'C ADD')
Writeln(output,';END DiskMAGIC')
Close(input)
END
STR ='The User-Startup has been altered,*nthe following lines have been added:*n*n;BEGIN DiskMAGIC*nASSIGN C:'||MTPATH||'C ADD*n;END DiskMAGIC'