Batch File to remove unwanted folder

Page 1 of 2 12 LastLast

  1. Posts : 13
    Windows 7 Ultimate 64Bit
       #1

    Batch File to remove unwanted folder


    Is there any way to remove all folders from one folder via a batch file?

    I've searched for an answer and nothing will work.


    Any help would be greatly appreciated. Thank you.
    Last edited by FrustratedJP; 18 Aug 2016 at 06:30.
      My Computer


  2. Posts : 3,785
    win 8 32 bit
       #2

    Welcome to the forum have you just tried rmdir folder /s or deltree c:\ folder
      My Computer


  3. Posts : 13
    Windows 7 Ultimate 64Bit
    Thread Starter
       #3

    Neither of your suggestions worked..
      My Computer


  4. Posts : 5,440
    Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
       #4

    Not sure what ou are trying to do! When you say remove do you want to delete the sub folders or perhaps move them to another location?
      My Computer


  5. Posts : 13
    Windows 7 Ultimate 64Bit
    Thread Starter
       #5

    I've downloaded a file, filebot takes that file, renames it then places it in E:\Organized Media. The initial file is saved under E:\Completed, this is the folder & file I would like to delete.

    Example: Folder name (X-files bla bla bla) Open folder (X-filesS1E45bla.mkv)
    I want to delete both from E:\Completed but every batch file I have found and tried does not work.
    Last edited by FrustratedJP; 18 Aug 2016 at 07:35.
      My Computer


  6. Posts : 13
    Windows 7 Ultimate 64Bit
    Thread Starter
       #6

    mitchell65 said:
    Not sure what ou are trying to do! When you say remove do you want to delete the sub folders or perhaps move them to another location?
    Yes, I want to delete all sub folders with E:/Completed.

    Every batch file I have found and tried does not work.
      My Computer


  7. Posts : 3,785
    win 8 32 bit
       #7

    Unless you don't have rights on the folders the cmds I gave you should work
      My Computer


  8. Posts : 13
    Windows 7 Ultimate 64Bit
    Thread Starter
       #8

    samuria said:
    Unless you don't have rights on the folders the cmds I gave you should work
    Neither works.
      My Computer


  9. Posts : 708
    Windows 7 x64
       #9

    FrustratedJP said:
    I've downloaded a file, filebot takes that file, renames it then places it in E:\Organized Media. The initial file is saved under E:\Completed, this is the folder & file I would like to delete.

    Example: Folder name (X-files bla bla bla) Open folder (X-filesS1E45bla.mkv)
    I want to delete both from E:\Completed but every batch file I have found and tried does not work.

    If the downloaded file create a link /shortcut to another folder, you may not be able to delete.
    It will always re-created the same folder E:\Completed if the folder is not found.
    That is to say, this E:\Completed will be create on the same root level.

    If you look at your 1st statement, E:\Organized Media
    And hence it will also created a folder E:\Completed.
    Both folders are on the same level E:\
    You may have to re-check all the setting of this program as where it will saved to.

    For example: Chrome browser.
    When on the website, you want to save any webpage /txt files, it auto save to C:\Download
    If the C:\Download is not available, it will create the folder C:\Download
    If you choose to save the txt file to another location, you input the location folder.
    When you exit Chrome browser, and later open the Chrome browser.
    Again if you download any txt file, example, it will save to C:\Download and if not available, it will create again.
    As you can create another folder for downloading of txt file and must amend the Chrome setting for download to a new C:\NEWfolder

    So, you need to check all the setting that will point to this folder E:\Completed.

    Normally this will be the temporary folder until completed then move &or copy to the folder.
    This is also same for downloading video.
    It will create a temp filename while downloading, and will renamed to the original name and the temp filename is thus deleted.

    Do note that during downloading &or installing program, the temp file will be in C:\Windows\Temp or C:\Users\your-acct-name\...\Temp folder.
    If you know how to access to your temp files at; C:\Users\your-acct-name\AppData\Local\Temp
    This is where all temp files are located.
      My Computer


  10. Posts : 194
    Windows 7 Home Premium 64 bit
       #10

    Delete Stubborn File see if this is any help.
      My Computer


 
Page 1 of 2 12 LastLast

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

© Designer Media Ltd
All times are GMT -5. The time now is 15:49.
Find Us