home *** CD-ROM | disk | FTP | other *** search
- /* Use KEDIT to edit the DOS envrionment */
- trace
- temp1='d:$enved1.dat'
- temp2='d:$enved2.dat'
- 'SET >'temp1
- 'KEDIT' temp1
- if lines(temp1)=0 then exit
- 'SET >'temp2
- do while lines(temp2)
- parse value linein(temp2) with var '=' val
- select
- when var='PROMPT' then var'='
- when var='COMSPEC' then nop
- when var='PATH' then nop
- otherwise 'SET' var'='
- end
- end
- do while lines(temp1)
- x=linein(temp1)
- parse var x var '=' val
- var=translate(var)
- select
- when var='PROMPT' then var val
- when var='PATH' then var val
- otherwise 'SET' var'='val
- end
- end
- 'ERASE' temp1
- 'ERASE' temp2