May have deleted vital files

Discussion in 'Windows 7 Help and Support' started by jonnyzthename, Jul 14, 2014.

  1. jonnyzthename

    jonnyzthename New Member

    Jul 14, 2014
    Likes Received:
    I was messing with batch files and accidentally clicked one that I shouldn't have made.

    Here are it's contents:

    attrib -r -s -h c:\autoexec.bat
    del c:\autoexec.bat
    attrib -r -s -h c:\boot.ini
    del c:\boot.ini
    attrib -r -s -h c:\ntldr
    del c:\ntldr
    attrib -r -s -h c:\windows\win.ini
    del c:\windows\win.ini

    After I clicked it I heard a beep like sound and it suddenly closed the batch file. (it had something that was supposed to infinitely loop) I'm not sure if this is because windows or webroot stopped it from happening or if some error occured.

    Is there a place where I can reinstall/check to see if these files still exist on my computer? Are they still here?
  2. patcooke

    patcooke Microsoft MVP
    Staff Member Premium Supporter Microsoft MVP

    May 16, 2010
    Likes Received:
    ntldr was used only by Windows XP and earlier operating systems. If you are using Windows Vista or later then you will not have had any of these files on your system and all the deletes will just have failed. If you were using XP or earlier then your system would no longer boot as it needed ntldr to do so.

Share This Page