The problem is that I can't seem to copy User.dat and System.dat files. I tried using attrib before the copy line, but I still can't get it to work. In Windows 95, the best command for this job is xcopy, with the right switches. Does not ask whether destination is file or directory.
Copies attributes along with file.
Overwrites existing files without prompting. This command will copy User.dat to the backup folder, retaining the read-only, hidden, and system attributes in the copy and overwriting the previous backup. Windows 98 includes Scanreg.exe, which scans the Registry for errors and automatically backs it up. In a standard installation, Scanreg.exe runs automatically each time Windows starts, but you can also launch it manually. If the Registry has already been backed up earlier the same day, it will ask whether or not to overwrite the earlier backup.