The new forums will be named Coin Return (based on the most recent vote)! You can check on the status and timeline of the transition to the new forums here.
The Guiding Principles and New Rules document is now in effect.

how do i delete an empty file that says its in use?

BarcardiBarcardi All the WizardsUnder A Rock: AfganistanRegistered User regular
edited June 2007 in Help / Advice Forum
i have this file, "new folder (2)" that i cannot delete. It is completely empty as far as i can figure out (0 KB inside) yet when i delete it it gives me this message "cannot delete new folder (2) is in use by another person or program"

nothing else is running and only i am connected to this computer, any ideas how to get rid of it?

Barcardi on

Posts

  • embrikembrik Registered User regular
    edited June 2007
    Get Unlocker
    It's free, and it works awesomely.

    embrik on
    "Damn you and your Daily Doubles, you brigand!"

    I don't believe it - I'm on my THIRD PS3, and my FIRST XBOX360. What the heck?
  • MuddBuddMuddBudd Registered User regular
    edited June 2007
    Sounds like a virus of some kind.

    MuddBudd on
    There's no plan, there's no race to be run
    The harder the rain, honey, the sweeter the sun.
  • VeeveeVeevee WisconsinRegistered User regular
    edited June 2007
    I've had windows do this to me occasionally. I usually just hide the folder so I can't see it and forget about it until I do a format, then the problem is fixed.

    Or do the Unlocker route.

    Veevee on
  • FristleFristle Registered User regular
    edited June 2007
    The underlying cause of this is a bug in Windows Explorer (the GUI component of the Windows desktop environment); it's been around forever too. Explorer.exe has a coding flaw, where it requests a handle to a file with the CreateFile() API and then doesn't follow up with a CloseHandle() routine when it is done accessing the file. So the operating system thinks the file is still in use and denies anyone the ability to delete or modify the file.

    The fix that Unlocker performs for you is to enumerate the handles left open by Explorer.exe, find the one you want to "unlock" and call CloseHandle() on it. You can also do this yourself with SysInternals Process Explorer.

    Fristle on
    Fristle.jpg
  • b0bd0db0bd0d Registered User regular
    edited June 2007
    Okay, lemme just hijack this real quick and ask ya question. What do you do if the filename isn't a valid file name? I was coding something in assembly and I made a pointer mistake. Instead of writing the filename, it wrote some random bytes of data as the file name. Really random bytes. Couple spaces, couple undisplayable characters, the Yen sign, this thing ¤. It never did get deleted. What coulda I done?

    b0bd0d on
  • JaninJanin Registered User regular
    edited June 2007
    b0bd0d wrote: »
    Okay, lemme just hijack this real quick and ask ya question. What do you do if the filename isn't a valid file name? I was coding something in assembly and I made a pointer mistake. Instead of writing the filename, it wrote some random bytes of data as the file name. Really random bytes. Couple spaces, couple undisplayable characters, the Yen sign, this thing ¤. It never did get deleted. What coulda I done?

    If it doesn't have a '/' character in it, you could a UNIX shell for Windows. Bash and ksh are popular choices.

    Janin on
    [SIGPIC][/SIGPIC]
  • TyphusTyphus Registered User regular
    edited June 2007
    I had this problem a few weeks ago, If you don't want to download anything you can try just booting up in safe mode and deleting the folder sometimes works if there actually is a program in your taskbar using the folder) or make a note of the exact file path and boot up the PC into dos and delete it from there. (don't do this without knowing exactly what you're doing, as it is *super* easy to wipe everything)

    Hope this helps

    Typhus on
  • RevolutionaryRevolutionary Registered User regular
    edited June 2007
    Revolutionary on
  • whuppinswhuppins Registered User regular
    edited June 2007
    The above link is great, but I just wanted to add that 99% of the time, you don't need to fool around with command prompts.

    Super-easy way that doesn't require you to download any software and works almost every time:

    1.) Ctrl-Alt-Del -> Task Manager

    2.) Processes tab, select explorer.exe and End Process

    3.) File -> New Task (Run)...

    4.) type 'explorer' and click OK

    After that, you should be able to delete the file.

    whuppins on
Sign In or Register to comment.