• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
Collapse

You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:

  • You are not logged in. If you are already registered, fill in the form below to log in, or follow the "Sign Up" link to register a new account.
  • You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
  • If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.

Previously on "Deleting 400,000 files"

Collapse

  • Paddy
    replied
    Originally posted by xoggoth View Post
    Waits for "How can I recover 40,000 files I deleted by mistake" thread.

    http://www.telefonica.net/web2/ttk/tmp/sshot-2.png

    Leave a comment:


  • xoggoth
    replied
    Waits for "How can I recover 40,000 files I deleted by mistake" thread.

    Leave a comment:


  • Paddy
    replied
    Originally posted by VectraMan View Post
    Well it's at least 400,000 because that's where I got bored with watching the folder properties count up. So who knows? It may be millions.

    This is on a Windows 2003 server. The SMTP server has a badmail folder, which I'm guessing is where a couple of years worth of spam has been accumulating. This is what I'm trying to clear out.

    If I try to select the folder with Explorer, then it just dies. If I right click and choose delete, it says "preparing to delete" until I get bored and cancelled it. And I'm currently running delete *.* in a command prompt, but that's having a good long think too and doesn't seem to be doing anything.

    Is there any sensible way I can delete a folder and not worry about the contents?

    This is a remote server I can only access via remote desktop. Part of the problem is if I just leave it doing something, the RDP session times out and kills the processes.
    Use MS tools / robocopy
    Make and empty directory(folder) eg: c:\mtdir
    mirror the empty directory to the full one
    use "/purge" option
    have a coffee and come back, all done!

    eg: robocopy c:\mtdir c:\fulldir /purge

    Leave a comment:


  • AtW
    replied
    Windows (NTFS) is not good when dealing with a lot of small files, it can be faster to reformat the whole disk or copy it using per sector copying.

    SKA had to change algorithm on how it stores small files sometime in 2006.

    Leave a comment:


  • RichardCranium
    replied
    What you need to do first is disable the Recycle Bin and then it will go like the clappers.
    Originally posted by VectraMan View Post
    It took nearly 4 hours, but it's gone!
    Oh, never mind.

    Leave a comment:


  • VectraMan
    replied
    It took nearly 4 hours, but it's gone!

    I'll try out that cleanup program. Thanks all.

    Leave a comment:


  • Platypus
    replied
    Originally posted by zeitghost
    For %1 in (*.*) do del %1

    Does it one at a time.
    Yes, but "*.*" still has to be evaluated

    Leave a comment:


  • VectraMan
    replied
    Originally posted by voodooflux View Post
    Give...

    Code:
    rmdir /s /q <folder>
    ...a go. It's still going to be slow but quicker than del *.* apparently.
    Ta. Had that running for half an hour now.

    I guess del *.* probably builds a list of files to delete, then deletes one at a time which must in itself be really innefficient with a directory full of files.

    Leave a comment:


  • Platypus
    replied
    Can you try

    DEL A*.*
    DEL B *.*

    and do it in small chunks

    Leave a comment:


  • Not So Wise
    replied
    This will allow you see what is happening (instead of looking like it is doing nothing)

    del /F /S /Q <Folder>

    Also, this should stop it from happening again
    http://www.microsoft.com/downloads/d...displaylang=en

    Edit: oh yeah, to the Remote issue, it on the same network? If so map to the folder from local machine and run command, bit slower in the delete but should have no time out issues
    Last edited by Not So Wise; 8 December 2009, 10:38.

    Leave a comment:


  • Spacecadet
    replied
    if it's on its own drive/partition then you could reformat it

    Leave a comment:


  • voodooflux
    replied
    Give...

    Code:
    rmdir /s /q <folder>
    ...a go. It's still going to be slow but quicker than del *.* apparently.

    Leave a comment:


  • VectraMan
    started a topic Deleting 400,000 files

    Deleting 400,000 files

    Well it's at least 400,000 because that's where I got bored with watching the folder properties count up. So who knows? It may be millions.

    This is on a Windows 2003 server. The SMTP server has a badmail folder, which I'm guessing is where a couple of years worth of spam has been accumulating. This is what I'm trying to clear out.

    If I try to select the folder with Explorer, then it just dies. If I right click and choose delete, it says "preparing to delete" until I get bored and cancelled it. And I'm currently running delete *.* in a command prompt, but that's having a good long think too and doesn't seem to be doing anything.

    Is there any sensible way I can delete a folder and not worry about the contents?

    This is a remote server I can only access via remote desktop. Part of the problem is if I just leave it doing something, the RDP session times out and kills the processes.

Working...
X