Results 1 to 10 of 10
  1. #1
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    scanreg /restore

    Win98 SE. I cannot reboot my computer after using scanreg /restore. I must missing something.

    I wanted to restore yesterday's registry after my folder options kept reverting to date order. So I booted to a DOS prompt & typed:
    scanreg /restore<enter>

    I picked yesterday's registry & restored it. Then I exited & rebooted. There were 2 error messages.
    Error 3: %winboot% environmental variable missing. No driver loaded.
    Error 5: (something else missing & no driver loaded). [I'm in front of another machine now.]

    I tried restoring again & the same thing happened. This happened a year ago & I went through all 5 registry backups. I finally had to restore everything from Backup Exec.

    Any ideas of what I'm missing here? I thought after restoring a good registry, I should be able to reboot.

  2. #2
    Banned Member
    Join Date
    Jul 2002
    Location
    Newport Richey, Florida, USA
    Posts
    2,149
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: scanreg /restore

    Can you boot into Safe Mode? If so check under device manager and see if a driver is missing on a device. Also you can use the help section from there.

  3. #3
    Silver Lounger
    Join Date
    Jan 2001
    Location
    Long Beach, California, USA
    Posts
    1,912
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: scanreg /restore

    If I take that at face value, "%winboot% environmental variable missing" means that your msdos.sys file is not set up correctly. The top of that file should look like this:

    [Paths]
    WinDir=c:windows
    WinBootDir=c:windows
    HostWinBootDrv=c

    You will note the WinBoot direction is specified as C:Windows. Perhaps yours is not doing this.

    I THINK you can also modify this using the "Set" command. At the C: prompt Enter "Set" and see what it says for your WinBootDir. Mine looks like this:

    C:WINDOWSDesktop>set
    TMP=c:windowsTEMP
    TEMP=C:windowsTEMP
    PROMPT=$p$g
    winbootdir=C:WINDOWS
    COMSPEC=C:WINDOWSCOMMAND.COM
    PATH=C:PROGRA~1WIN98RK;C:WINDOWS;C:WINDOWS;C:WINDO WSCOMMAND
    windir=C:WINDOWS

    You should be able to modify setting with the Set command as well:

    C:WINDOWSDesktop>set /?
    Displays, sets, or removes Windows environment variables.

    SET [variable=[string]]

    variable Specifies the environment-variable name.
    string Specifies a series of characters to assign to the variable.

    Type SET without parameters to display the current environment variables.

  4. #4
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: scanreg /restore

    Hi Rick:
    That must be it. Whenever I ran Norton antivirus, it said msdos.sys, mydos.sys, etc. were not valid files & couldn't be innoculated. I have printed your directions & will try them tomorrow.

    Just so I'm clear. To edit the variables, (after typing SET, to see what they are), I should:
    Type a series of lines
    SET [WinBootDir=[C:Windows]] or [C:WindowsSystem] including typing the tabs
    SET [Prompt=[$p$g]] etc.

    If I find an old backup with msdos.sys, could I restore msdos.sys using that? If so, what DOS commands should I use? (I know virtually nothing of DOS).

    (Thanks for responding, cowboydawg. I am unable to boot into Safe Mode also.)

    By the way, why would scanreg /restore make it so I couldn't reboot? The msdos.sys file has been the same for a long time & I reboot all the time. Thanks again.

  5. #5
    Silver Lounger
    Join Date
    Jan 2001
    Location
    Long Beach, California, USA
    Posts
    1,912
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: scanreg /restore

    If you have Norton Utilities and Norton Protected Recyle Bin, you might be able to find the msdos.sys file in the "Recyced" folder -- but maybe not. Even so, you may just want to create a new one on a different box and copy it to the affected computer.

    The entire contents of my msdos.sys file is this:
    ----------------------------

    [Paths]
    WinDir=c:windows
    WinBootDir=c:windows
    HostWinBootDrv=c

    [Options]
    BootMulti=1
    BootMenu=1
    BootDelay=2
    BootGUI=1
    BootKeys=1
    DoubleBuffer=1
    AutoScan=2
    WinVer=4.10.1998
    Logo=0

    ;The following lines are required for compatibility with other programs.
    ;Do not remove them (MSDOS.SYS needs to be >1024 bytes).
    ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxa
    ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx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xxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxq
    ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxr
    ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxs

    ------------------------------------

    Please note that the funny section at the end IS needed!!!

    Just for your information, the Options you see there are these:

    BootMulti = Startup key F4 access: old OS bootup choice access
    1 = Enabled: F4 access ON (Default)
    0 = Disabled: F4 access OFF

    BootMenu = Startup Menu display
    0 = Disabled: Press F8 to display (Default)
    1 = Enabled: Show Startup Menu

    BootDelay = Initial startup delay in seconds
    Default 2 (DEFAULT is 0 if "BootKeys=0)
    Range 0 - 2

    BootGUI = Automatic Windows 9x/ME GUI startup
    1 = Enabled: Start Windows 9x/ME GUI (Default)
    0 = Disabled: Start MS-DOS 7.xx/8.00 Command Prompt

    BootKeys = Startup keys access: F4, F5, F6, F8, Ctrl and Shift
    1 = Enabled
    0 = Disabled

    DoubleBuffer = SCSI, older ESDI/IDE/ATA and large FAT32 drives > 8 GB may need Double-Buffering
    0 = Disabled: DoubleBuffer OFF
    1 = Enabled: DoubleBuffer ON only if necessary
    2 = Enabled: DoubleBuffer always ON

    AutoScan = Allow Win95 B/C OSR 2.x, 98/98 SE or ME to automatically ScanDisk the boot drive after improper shutdown
    1 = Prompt user for scanning (scan begins if NO input for 60 seconds) (Default)
    0 = NO scanning allowed
    2 = Allow automatic scanning (NO prompt)

    Logo = Display (animated) Logo while Windows 9x/ME OS boots
    1 = Enabled: Display Logo (Default)
    0 = Disabled: Do NOT display Logo

    WinVer=4.10.1998


    You may or may not want to use my settings. You can read more about these here:
    http://members.aol.com/axcel216/msdos.htm

  6. #6
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: scanreg /restore

    Thanks again for all the information. I don't have Norton Utilities or Protected Recycle Bin. I will look for msdos.sys & try to edit it.

    I tried your first suggestion using the SET command. It showed:

    C:>Set temp=C:Windowstemp
    C:>rem Set tmpC:Windowstemp
    C:>set
    PROMPT=$P$G
    COMSPEC=C:COMMAND.COM
    BLASTER=A220 i5 D3 T4
    CMDLINE=C:WINDOWSAU30DOS.COM
    TEMP=C:Windowstemp
    PATH=C:PROGRA~1WIN98RK;C:WINDOWSCOMMAND;C:PROGRAM FILESDISKEEPERLITE

    When I use the SET command to try to set the winbootdir, etc., I can add the lines

    winbootdir=C:windows
    windir=C:windows

    However, as soon as I try to reboot (using Ctrl+Alt+Del), I can't. When I check the SET command again, it doesn't have the path for winbootdir or windir. i.e. the change isn't sticking.

    A few questions:
    1. If I can find an msdos.sys file on a floppy, can I copy it?
    2. If so, do I copy it to C: or to C:Windows?
    3. If so, is this how I do it from the A:>

    Copy msdos.sys C:msdos.sys

    4. Isn't there something about removing the hidden & system attributes & putting them back?

    Thanks again for all your help.

  7. #7
    Silver Lounger
    Join Date
    Jan 2001
    Location
    Long Beach, California, USA
    Posts
    1,912
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: scanreg /restore

    Sorry, I am leaving for a ski trip in SECONDS!!!

    The msdos.sys is just a text file -- you can copy it from anywhere. Yes, you need to change the attributes -- and the command prompt type "attrib /?" for details. The same goes for "copy /?". You can learn about most DOS commands this way.

    Got to run!! Good luck.



    C:WINDOWSDesktop>attrib /?
    Displays or changes file attributes.

    ATTRIB [+R | -R] [+A | -A] [+S | -S] [+H | -H] [[drive:][path]filename] [/S]

    + Sets an attribute.
    - Clears an attribute.
    R Read-only file attribute.
    A Archive file attribute.
    S System file attribute.
    H Hidden file attribute.
    /S Processes files in all directories in the specified path.




    C:WINDOWSDesktop>copy /?
    Copies one or more files to another location.

    COPY [/A | /B] source [/A | /B] [+ source [/A | /B] [+ ...]] [destination
    [/A | /B]] [/V] [/Y | /-Y]

    source Specifies the file or files to be copied.
    /A Indicates an ASCII text file.
    /B Indicates a binary file.
    destination Specifies the directory and/or filename for the new file(s).
    /V Verifies that new files are written correctly.
    /Y Suppresses prompting to confirm you want to overwrite an
    existing destination file.
    /-Y Causes prompting to confirm you want to overwrite an
    existing destination file.

    The switch /Y may be preset in the COPYCMD environment variable.
    This may be overridden with /-Y on the command line

    To append files, specify a single file for destination, but multiple files
    for source (using wildcards or file1+file2+file3 format).

  8. #8
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: scanreg /restore

    Thanks again, Rick. I've printed out your instructions & will try it out. Thanks for everything. I really appreciate it. Have a great ski trip!!!

  9. #9
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: scanreg /restore

    Got it!! <img src=/S/joy.gif border=0 alt=joy width=23 height=23> <img src=/S/clapping.gif border=0 alt=clapping width=19 height=23> Thanks again. I still don't know why my msdos.sys file went bad. I found out something else, too.

    I created a startup disk in DOS by typing

    bootdisk

    at the C:> prompt. I read that tip somewhere. In any event, it created an msdos.sys file with one line:

    ;sys

    As a result, copying over that msdos.sys file did me no good. I eventually just used the attrib switches you sent me to show the file & then typed in what was in your msdos.sys file & saved it. Then I applied the + attributes.

    I'm not sure why the scanreg /restore screwed me up in the first place, but this is the second time it's happened. If you have any ideas, please let me know.

  10. #10
    Silver Lounger
    Join Date
    Jan 2001
    Location
    Long Beach, California, USA
    Posts
    1,912
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: scanreg /restore

    Well, it is not supposed to... But such is Windows. <img src=/S/smile.gif border=0 alt=smile width=15 height=15> Glad it is back to normal.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •