Windows 10: Unintentionally DEL /S C:\* (CMD)

  1.    05 May 2018 #1

    Unintentionally DEL /S C:\* (CMD)


    Hello all.. As title, unintentionally I run a batch file that contains commands to erase every files in %systemdrive%. The batch is simply like this:

    Del /f /s /q c:\*
    Pause

    Which mean delete forcely in-subdirectory-also quitely all files in C:
    I'm not really intended to do it tho, I misstyped a var so it called my another path (whichis systemdrive) instead of my prefered path.
    I'm not really sure whether I executed it elevated or not, but thankfully there's a modern feature of ownership that got trustedinstaller and system "accounts", so not every files deleted.
    Of course I got my personal data (that I'm manually put into this path and sub) deleted, but I see files in windir like cmd.exe regedit.exe is there, saved, and the command reached to the end of line (pause)
    Now I'm tryin to recovery some files with GetDataBack running in D:\, not so effective though since it's booting from the partition I intend to recover, but I dont want to restart it yet (worrying cant boot anymore).

    Could you tell me what files that posible to delete with such command, so I know what to recover.
    Or could you please run a win10PE and simulate my command (both elevated and not), so we know what got deleted, I really thankful if you could provide a report text also.
    Thanks so much guys
      My ComputerSystem Spec

  2.    05 May 2018 #2

    akbarnp said: View Post
    Hello all.. As title, unintentionally I run a batch file that contains commands to erase every files in %systemdrive%. The batch is simply like this:

    Del /f /s /q c:\*
    Pause

    Which mean delete forcely in-subdirectory-also quitely all files in C:
    I'm not really intended to do it tho, I misstyped a var so it called my another path (whichis systemdrive) instead of my prefered path.
    I'm not really sure whether I executed it elevated or not, but thankfully there's a modern feature of ownership that got trustedinstaller and system "accounts", so not every files deleted.
    Of course I got my personal data (that I'm manually put into this path and sub) deleted, but I see files in windir like cmd.exe regedit.exe is there, saved, and the command reached to the end of line (pause)
    Now I'm tryin to recovery some files with GetDataBack running in D:\, not so effective though since it's booting from the partition I intend to recover, but I dont want to restart it yet (worrying cant boot anymore).

    Could you tell me what files that posible to delete with such command, so I know what to recover.
    Or could you please run a win10PE and simulate my command (both elevated and not), so we know what got deleted, I really thankful if you could provide a report text also.
    Thanks so much guys
    Try a Restore Point first, or a Reset...
      My ComputerSystem Spec


 

Tags for this Thread

Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 22:30.
Find Us