How to recover a folder accedentally deleted in cmd

Page 1 of 3 123 LastLast

  1. fix
    Posts : 16
    Windows 11
       #1

    How to recover a folder accedentally deleted in cmd


    Weird story:
    I noticed two folders were created with the same name. I deleted the empty one. I found I cannot delete a file from the other with files. Checked folder properties – size 0 and the security tab was in red text.
    I copied files into another folder and then deleted files with File Explorer. I cannot delete the folder that way.
    Ran in cmd del /s /q Youtube Iza , but instead of deleting the folder, the report showed a nonsense file was deleted with the name Youtube.
    How to recover a folder accedentally deleted  in cmd-cmd-del.jpg

    I don’t know what that file was, but a folder named Youtube disappeared with all the files in it.
    Tried to recover files with third-party SW. Done, but the player says “Cannot render file”. Tried with video repair app – “file not contained valid data”
    I assume it might be a way to recover the existing folder with the files, instead of extracting data on another drive.
    Please help.
      My Computer


  2. Posts : 14,022
    Win10 Pro and Home, Win11 Pro and Home, Win7, Linux Mint
       #2

    The image shows a long path and the last item after \ is the YouTube folder. The problem with deleting from the CMD prompt is it bypasses the Recycle Bin and Windows-based recovery programs may not work, don't know what is available for the CMD prompt, probably something DOS based.
      My Computers


  3. Posts : 16,950
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #3

    fix said:
    del /s /q Youtube Iza
    When a path-filename has a space [or any special character such as &] in it, you need to enclose the whole path in quotation marks
    Not
    del /s /q Youtube Iza
    but
    Code:
    del /s /q "Youtube Iza"


    All the best,
    Denis
    Last edited by Try3; 4 Weeks Ago at 19:28.
      My Computer


  4. Posts : 1,211
    Windows 10
       #4

    You deleted a preset file for youtube rendering output settings.
    Just reinstall the program or download the portable version and overwrite the files.

    There is no youtube folder past \aviformat its just a stock file for preset that can be opened in txt editor.
      My Computer


  5. fix
    Posts : 16
    Windows 11
    Thread Starter
       #5

    Malneb said:
    You deleted a preset file for youtube rendering output settings.
    Just reinstall the program or download the portable version and overwrite the files.
    Thank you for pointing this out. I didn't use that program for years (Shortcut - for video edit). I don't need it.

    - - - Updated - - -

    Thank you, gentlemen, for the quick replies and the correct analysis!

    Could you help me with the syntax for CMD undelete?
    1. In the command line, chkdsk F:/f
    2. Press Y until the command line starts again. (Does this require multiple confirmations?)
    3. Type F and Enter key.
    4. Enter the following command:
    attrib -h -r -s /s /d F:\”Youtube”\*.*
    5. And it seems all files will be stored on F drive with correct names but extension Chk.
    How to recover a folder accedentally deleted  in cmd-attrib-cmd.jpg

    Please help me out!
      My Computer


  6. Posts : 16,950
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #6

    fix said:
    Could you help me with the syntax for CMD undelete?
    What you wrote after that line has nothing to do with undeleting.

    If it is in your Recycle bin then you'll be able to undelete it, 'Restore' it.
    If it is not in your Recycle bin then you'll need to use a specialist utility such as Recuva. And success is not guaranteed.


    Denis
      My Computer


  7. fix
    Posts : 16
    Windows 11
    Thread Starter
       #7

    Denis,

    thank you for the clarification!
    This is what I read in some articles. If you send me a link where it is properly described I will be thankful.

    Thanks,
    Georgi
      My Computer


  8. Posts : 16,950
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #8

    Georgi,

    There is no undelete command.

    ChkDsk
    has nothing to do with undelete. It is a disk checking tool
    Drive Error Checking - TenForumsTutorials
    Read Chkdsk Log in Event Viewer - TenForumsTutorials
    What Are the FOUND.000 Folder and FILE0000.CHK File in Windows - HTG
    Full and Free Solutions for CHK File Recovery - EaseUS
    And it does indeed use the extension .chk for recovered fragments [which may or may not be files].

    Attrib is irrelevant as well.
    Attrib - SS64


    All the best,
    Denis
      My Computer


  9. fix
    Posts : 16
    Windows 11
    Thread Starter
       #9

    Denis,

    Thank you for the enlightening and the links.


    Thanks,
    Georgi
      My Computer


  10. Posts : 16,950
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #10

    fix said:
    Thank you for the enlightening and the links.
    And don't forget Recuva.
    Try3 said:
    If it is not in your Recycle bin then you'll need to use a specialist utility such as Recuva. And success is not guaranteed.


    Denis
      My Computer


 

  Related Discussions
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 10:19.
Find Us




Windows 10 Forums