中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-02 02:26
48,037 topics / 350,122 posts / today 2 new / 48,250 members
DOS批处理 & 脚本技术(批处理室) » Question: How do I write this batch file
Printable Version  3,798 / 37
Floor16 Wengier Posted 2003-04-04 00:00
系统支持 Posts 10,521 Credits 27,736
If it's only for restoring the registry, then the method they mentioned in the earlier posts is enough.
Floor17 菜菜菜 Posted 2003-04-04 00:00
初级用户 Posts 16 Credits 136
But I already tried it, and the earlier method doesn't work. Is there maybe something else that wasn't written out?
Floor18 Wengier Posted 2003-04-04 00:00
系统支持 Posts 10,521 Credits 27,736
If you use the earlier method, what happens (for example, error messages, etc.)?
Floor19 菜菜菜 Posted 2003-04-04 00:00
初级用户 Posts 16 Credits 136
Yes, the following error message appears:
invalid directory
Floor20 Wengier Posted 2003-04-04 00:00
系统支持 Posts 10,521 Credits 27,736
That means the path is incorrect. First, the C:\WINDOWS mentioned by lydong needs to be adjusted according to the actual situation. For example, if WIN is in the D:\WINDOWS folder, then C:\WINDOWS should be changed to D:\WINDOWS. Also, the SYSBAK folder must be created in advance and the files to be backed up must be copied there first; only then can it work.
Floor21 菜菜菜 Posted 2003-04-04 00:00
初级用户 Posts 16 Credits 136
WIN is installed on c :, and sysbak was also created beforehand and the files to be backed up were copied there. But it still doesn't work.
Floor22 Wengier Posted 2003-04-04 00:00
系统支持 Posts 10,521 Credits 27,736
Can you upload a screenshot for us to take a look?
Floor23 菜菜菜 Posted 2003-04-04 00:00
初级用户 Posts 16 Credits 136
Only that one line of English appears, nothing else, and after two minutes it enters WIN normally.
Floor24 Wengier Posted 2003-04-04 00:00
系统支持 Posts 10,521 Credits 27,736
Actually, just use:

attrib -s -h c:\windows\system.dat
attrib -s -h c:\windows\user.dat
copy c:\windows\system\sysbak c:\windows

and that's enough.
Floor25 菜菜菜 Posted 2003-04-04 00:00
初级用户 Posts 16 Credits 136
Thanks... I'll give it a try.
Floor26 菜菜菜 Posted 2003-04-04 00:00
初级用户 Posts 16 Credits 136
It doesn't work... It says file not found.
Floor27 Wengier Posted 2003-04-04 00:00
系统支持 Posts 10,521 Credits 27,736
Which file does it say it can't find?
Floor28 菜菜菜 Posted 2003-04-05 00:00
初级用户 Posts 16 Credits 136
It can't find c:\windows\system\sysbak
Floor29 菜菜菜 Posted 2003-04-05 00:00
初级用户 Posts 16 Credits 136
But that file has already been created.
Floor30 Wengier Posted 2003-04-05 00:00
系统支持 Posts 10,521 Credits 27,736
So apparently the SYSBAK folder was not created successfully. Please check whether the spelling is wrong, whether the settings are correct, etc.
Prev  1 2 3  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023