• 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!

Deleting 400,000 files

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    #11
    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
    "A people that elect corrupt politicians, imposters, thieves and traitors are not victims, but accomplices," George Orwell

    Comment


      #12
      Waits for "How can I recover 40,000 files I deleted by mistake" thread.
      bloggoth

      If everything isn't black and white, I say, 'Why the hell not?'
      John Wayne (My guru, not to be confused with my beloved prophet Jeremy Clarkson)

      Comment


        #13
        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
        "A people that elect corrupt politicians, imposters, thieves and traitors are not victims, but accomplices," George Orwell

        Comment

        Working...
        X