@echo off :rem REG-CHAN 1.0 - Restores WIN95 Registry from backups made by REG-SAVE :rem Copyright (c) 1998 Kari Eveli and Lexitec :rem Downloaded from: www.lexitec.fi :rem Mail questions, user reports, and suggestions to: online@lexitec.fi :rem Note: REG-CHAN /? or REG-CHAN without parameters shows :rem syntax and lists current backups to choose from :rem WARNING: The restore process overwrites the Registry. Use REG-SAVE first. :rem VAROITUS: REG-CHAN tuhoaa nykyiset USER.DAT ja SYSTEM.DAT -tiedostot. :rem Aja REG-SAVE -ohjelma niiden varmistamiseksi ensin nykymuodossaan. cls if $%1$==$/?$ goto syntax if $%1$==$$ goto syntax c: cd \windows attrib -h -r -s user.dat attrib -h -r -s system.dat copy user-00%1.dat user.dat copy syst-00%1.dat system.dat attrib +h +r +s user.dat attrib +h +r +s system.dat dir /A SYSTEM.DAT | find "." dir /A SYST-00?.DAT | find "." dir /A USER.DAT | find "." dir /A USER-00?.DAT | find "." goto end :syntax c: cd \windows echo REG-CHAN echo Syntax: REG-CHAN 1 = Install SYST-001.DAT & USER-001.DAT (overwrites Registry!) echo 1-9 BACKUPS echo Current Registry: dir /A SYSTEM.DAT | find "." dir /A USER.DAT | find "." echo Choose Registry backup files to restore from: dir /A SYST-00?.DAT | find "." dir /A USER-00?.DAT | find "." :end