hide random home http://www.gateway2000.com/support/techsupt/fb/1000/1093.htm (Amiga Plus Extra No. 5/97, 05/1997)

If you delete files in your root directory

You have two ways to recover the files. The first way is to use the undelete command. The second way is to manually recreate each file.

To restore files with UNDELETE:

  1. Find your MS-DOS diskettes and insert disk #1 into drive A.

  2. Reboot your machine. The computer will boot to the floppy drive instead of the hard drive.

  3. If you are using MS-DOS 5.0, press F3 when the Welcome to Setup screen appears. Answer Y to the question about exiting setup and returning to DOS. This brings you to an A:\> prompt.

  4. Change to drive C: At the C:\> prompt, type:

    path c:\dos

    and press Enter.

  5. Type:
    undelete

    and press Enter.

  6. The undelete command responds with the files 1 by 1. The first letter of each file is a question mark. Enter the first letter for each file to undelete it. For example, suppose you accidentally deleted the AUTOEXEC.BAT file. To recover this file, type

    undelete

    at the C:\> prompt. The computer responds with:

    Directory: C:\
    File specifications: *.*
    Deletion-tracking file not found.
    MS-DOS directory contains 1 deleted files.
    Of those, 1 files may be recovered.
    Using MS-DOS directory
    ?UTOEXEC BAT 90 2-16-93 3:14p ...A Undelete (Y/N)?

  7. Answer Y. The computer asks you to type the first character for AUTOEXEC.BAT.

    Please type the first character for ?UTOEXEC.BAT:

  8. Type the first letter of the file name, an "a."

  9. After undeleting the files, remove the disk from drive A and reboot your computer.

To manually restore deleted files from the backup directory:

  1. Find your MS-DOS diskettes and insert disk #1 into drive A.

  2. Reboot the computer. The computer will boot to the floppy drive instead of the hard drive.

  3. If you are using MS-DOS 5.0, press F3 when the Welcome to Setup screen appears. Answer Y to the question about exiting setup and returning to DOS. This brings you to an A:\> prompt.

  4. Change to drive C. Type "c:"

  5. At the C:\> prompt, type

    dir /w

    and press Enter. This displays the directory of your hard drive in a wide format.

  6. Look at the items inside square brackets for either [BACKUP] or [ROOT].

  7. If one of these directories is on your hard drive, type

    copy c:\backup\*.*

    or

    copy c:\root\*.*

    and press Enter. This restores several necessary files to your root directory.

To manually restore files without a backup directory:

If neither the [root] nor [backup] subdirectory exists; the backup directory may not be on your hard drive. Follow these steps to reconfigure your root directory.

  1. Change to Drive C by typing "C:" and pressing Enter.

  2. Type:

    copy con config.sys

    and press Enter. The cursor drops to the next line, ready for input.

  3. Type each line as shown. Press Enter at the end of each line:

    device=c:\windows\himem.sys
    dos=high,umb
    stacks=9,256
    files=50
    buffers=20

  4. If you make a mistake during typing, press Ctrl+C and start over at step 2.

  5. If you have a SCSI Hard drive, Add this line at the end:

    device=c:\windows\smartdrv.exe /double buffer

  6. After typing the last line, press F6, then press

    Enter. The computer responds with the message "1 File Copied" and you are back at the C:\> prompt.

  7. Type:

    copy con autoexec.bat

    and press Enter. The cursor drops to the next line, ready for input.

  8. Enter each line shown here. Press Enter at the end of each line.

    @echo off
    c:\windows\smartdrv.exe
    prompt $p$g
    set mouse=c:\msmouse
    c:\msmouse\mouse
    path c:\;c:\dos;c:\windows
    set temp=c:\windows\temp
    win

  9. If you make a mistake, press Ctrl+C and start over at step 7. If you do not want the computer to start Windows automatically, do not enter the last line of the autoexec.bat.

  10. After typing the last line, press F6, then press Enter. The computer responds with the message "1 File Copied" and you are back at the C:\> prompt.

  11. Type:

    copy a:command.com

    and press Enter. This copies the COMMAND.COM file from drive A onto drive C.

  12. Insert the last disk of your MS-DOS 5.0 diskettes

  13. Type:

    path c:\dos

    and press Enter.

  14. Type:

    expand a:wina20.38_wina20.386

    and press Enter. This is command expands and copies the file from the disk to the hard drive. Make sure you type the line exactly as shown.

  15. When the C:\> prompt returns, remove the diskette.

  16. Type:

    md backup

    and press Enter. This creates a backup subdirectory.

  17. Type:

    copy *.* c:\backup

    and press Enter. This copies the files in the root directory to the backup subdirectory. Now you have some insurance against future mishaps!

    (You may also want to create a bootable diskette and copy the files there as well.)

  18. Reboot your computer.


The information in these articles is provided "as-is" without warranty of any kind, and all warranties are hereby disclaimed, whether express or implied, including, without limitation, the implied warranties of merchantability, fitness for a particular purpose and non-infringement. Gateway 2000 will not be liable for any damages whatsoever, whether direct, special, indirect, incidental, or consequential (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or any other pecuniary loss) arising out of, or related to your use of, or inability to use the information in any such article, even if advised of the possibility of such damages. Because some states and jurisdictions do not allow the exclusion or limitation of liability for consequential or incidental damages, the above limitation may not apply to you. You may not further distribute, reproduce, rent, sell, transfer or license these articles.

If our documentation hasn't helped you,
this might be a good time to send
an e-mail to Technical Support.

[Products] [Global Site] [Tech Support] [Corporate Information] [The Cow Zone] [What's New] [Glossary] [Search] [Home]

[Gateway 2000]
Copyright © 1996 Gateway 2000 Inc. All rights reserved.
Please see our Legal Information. Please send feedback to Webmaster Central.