Tilted Forum Project Discussion Community  

Go Back   Tilted Forum Project Discussion Community > Interests > Tilted Technology


 
 
LinkBack Thread Tools
Old 04-05-2004, 01:50 PM   #1 (permalink)
 
KnifeMissile's Avatar
 
Location: Waterloo, Ontario
WindowsXP won't let me delete a file!

Now, I'm trying to delete a file and I can't because something has a lock on it but, of course, WindowsXP&trade won't tell me what that something is. So, I am using Process Explorer, by Mark Rusinovich, to detemine what process has a lock on the file and it turns out to be (drum roll, please...)--explorer, itself! Yes, the very program used to delete files has a lock on the file I want to delete!

What crap is this?

For all of you not In the Know&copy, explorer is the name of the process that is your windowing environment. So, when you place things on your desktop, or use your taskbar, or launch the default file browser (also commonly called Explorer), that is all done with a single process called explorer, probably found in your C:\WINDOWS directory. The program is formally called Windows Explorer.

I have terminated explorer and started it again (to ensure that no one has a lock on said file). Indeed, no one has a lock on the file. So, I go to delete it using explorer and it takes it's sweet time before telling me that it can't because it has a lock on the file! Just in case that wasn't annoying enough, it also decides to spin on the CPU, for no good reason (other than to annoy me, of course!).

The only remedy to all this was to kill explorer (again!), delete the file using the del program from the command shell, and then to restart explorer. Now, things are finally okay with my system (for now...).

My question is, What the Fuck!?&copy If WindowsXP&trade isn't the buggiest piece of crap I have ever used since Windows95/98&trade, I don't know what is!
KnifeMissile is offline  
Old 04-05-2004, 01:58 PM   #2 (permalink)
I'm a family man - I run a family business.
 
Redjake's Avatar
 
Location: Wilson, NC
try ending all the programs but the essentials, then try deleting. I assume you've restarted your computer multitudes of times.
__________________
Off the record, on the q.t., and very hush-hush.
Redjake is offline  
Old 04-05-2004, 02:00 PM   #3 (permalink)
SiN
strangelove
 
SiN's Avatar
 
Location: ...more here than there...
Re: WindowsXP won't let me delete a file!

Quote:
Originally posted by KnifeMissle
My question is, What the Fuck!?&copy If WindowsXP&trade isn't the buggiest piece of crap I have ever used since Windows95/98&trade, I don't know what is!
Um...Windows ME?

//edit - you did the right thing by killing explorer and deling from cmd...and I hope/assume you did *not* restart several times..I suspect you know better
__________________
- + - ° GiRLie GeeK ° - + - °
01110010011011110110111101110100001000000110110101100101
Therell be days/When Ill stray/I may appear to be/Constantly out of reach/I give in to sin/Because I like to practise what I preach
SiN is offline  
Old 04-05-2004, 02:05 PM   #4 (permalink)
 
KnifeMissile's Avatar
 
Location: Waterloo, Ontario
Quote:
Originally posted by Redjake
try ending all the programs but the essentials, then try deleting. I assume you've restarted your computer multitudes of times.
With all due respect, I don't think you read my story. What's the point in terminating a bunch of processes when I know which process has the lock and terminated it. Not to mention that (again) it was the very program used to delete files that had the lock on it...
KnifeMissile is offline  
Old 04-05-2004, 02:21 PM   #5 (permalink)
Upright
 
Location: WA
Try restarting the computer then going to run and type cmd. Then navigate to the correct directory and type del filename where filename is the file you want to delete.
__________________
Hi
4evar is offline  
Old 04-05-2004, 03:18 PM   #6 (permalink)
I'm a family man - I run a family business.
 
Redjake's Avatar
 
Location: Wilson, NC
Quote:
Originally posted by KnifeMissle
With all due respect, I don't think you read my story. What's the point in terminating a bunch of processes when I know which process has the lock and terminated it. Not to mention that (again) it was the very program used to delete files that had the lock on it...

with all due respect, programs don't always tell the truth....

I read the story and have had a similar problem. Don't be so quick to be a smartass. I simply ended all the programs but the essentials and I could then delete the file.

not to mention restarting your computer is something you should try. sometimes an application that is exexcuted on startup can hold a file hostage. sometimes it won't. it's always worth a try. everything is worth a try.
__________________
Off the record, on the q.t., and very hush-hush.
Redjake is offline  
Old 04-05-2004, 03:21 PM   #7 (permalink)
I'm a family man - I run a family business.
 
Redjake's Avatar
 
Location: Wilson, NC
You could maybe try booting with Knoppix but that's getting into the real nerd shit.
__________________
Off the record, on the q.t., and very hush-hush.
Redjake is offline  
Old 04-05-2004, 03:22 PM   #8 (permalink)
Banned
 
have you tried in safe mode, i did this and it worked for me once.
Ov3rKiLL is offline  
Old 04-05-2004, 03:48 PM   #9 (permalink)
 
KnifeMissile's Avatar
 
Location: Waterloo, Ontario
Quote:
Originally posted by Redjake
with all due respect, programs don't always tell the truth....

I read the story and have had a similar problem. Don't be so quick to be a smartass. I simply ended all the programs but the essentials and I could then delete the file.
I don't think that the idiom "with all due respect" means what you think it means. It means I am trying very hard not to be a "smartass," yet you interpreted it to mean exactly it's opposite.
So, let me ask a simple question. If you had read my story then why did you suggest that I shut down all but essential programs as if I hadn't already solved my problem?


Quote:
not to mention restarting your computer is something you should try. sometimes an application that is exexcuted on startup can hold a file hostage. sometimes it won't. it's always worth a try. everything is worth a try.
Restarting your computer is not something you should always try. Restarting your computer will fix most of your problems but it should be a last resort. If rebooting doesn't help then you've got some serious problems!
KnifeMissile is offline  
Old 04-05-2004, 03:56 PM   #10 (permalink)
 
KnifeMissile's Avatar
 
Location: Waterloo, Ontario
Thank you all for your kind advice. Please, let me clear a few things up.

I have already solved my problem.
If you read my post, you will see that it was merely a (hopefully) funny anecdote on how crappy WindowsXP&trade can be. I was eventually able to delete the file and without rebooting! I admit that my characterization of my solution as being "the only remedy" was poor considering how rebooting would probably have fixed the problem but, like most users, I hate having to reboot my machine. It's inconvenient and (in my humble opinion) an insult to computing.

I mean, really. The very program used to delete files held a lock on the file, preventing it from being deleted!
Does no one see the irony in that?
KnifeMissile is offline  
Old 04-05-2004, 04:00 PM   #11 (permalink)
 
KnifeMissile's Avatar
 
Location: Waterloo, Ontario
Re: Re: WindowsXP won't let me delete a file!

Quote:
Originally posted by SiN
Um...Windows ME?

//edit - you did the right thing by killing explorer and deling from cmd...and I hope/assume you did *not* restart several times..I suspect you know better
Thank you for the kind credit. I like to think I do know better...
KnifeMissile is offline  
Old 04-05-2004, 04:14 PM   #12 (permalink)
Not so great lurker
 
Location: NY
Reading through your tirade seems like you came across a (different) workaround for the issue that was in this thread about xp "holding" onto files http://www.tfproject.org/tfp/showthr...threadid=44457

Although some of the other "fixes" mentioned in the thread may help you in the future.
heyal256 is offline  
Old 04-05-2004, 04:40 PM   #13 (permalink)
Upright
 
*edited because I can't give advice without being rude*

Try checking the security settings on the file before blaming explorer for having a lock on it. More than likely you didn't have rights to be accessing that file and that is why you were unable to do so.

Last edited by onodrim; 04-05-2004 at 05:57 PM..
Cryptie is offline  
Old 04-05-2004, 04:44 PM   #14 (permalink)
I'm a family man - I run a family business.
 
Redjake's Avatar
 
Location: Wilson, NC
Quote:
Originally posted by KnifeMissle
Restarting your computer is not something you should always try. Restarting your computer will fix most of your problems but it should be a last resort. If rebooting doesn't help then you've got some serious problems!
Jesus, where not going to war with Iraq by restarting your computer. Whenever something on my computer is messed up, I restart. I'm sure there are thousands, of not millions, of other people who do the same thing. Why is restarting your computer such a big deal? Am I missing something? Is there some "restarting your computer" conspiracy that I'm not hearing about? Just restart it. See if it fixes it. If not, try something else It's not like you are only permitted a small amount of restarts per day. It would be different if I was saying "format and reinstall Windows." But nope. Restarting your computer. As in turning it off and turning it on. What's the big deal?

I'm glad you were able to fix the problem. But just because restarting didn't fix it this time around doesn't mean restarting your computer in the future is a waste and should be a last resort. It's usually the first thing I try, and it usually fixes the problem
__________________
Off the record, on the q.t., and very hush-hush.
Redjake is offline  
Old 04-05-2004, 04:53 PM   #15 (permalink)
Crazy
 
KnifeMissle
I agree with you. I've had this happened to me before and the only solution was to delete the file via dos command. Sometimes restarting the computer helps, but not always.
Yes, I think Windows does something strange.
panbert is offline  
Old 04-05-2004, 05:43 PM   #16 (permalink)
Upright
 
It is amazing how many people treat running Windows as if it were practicing VooDoo. It's really not that hard to see what happens and why. And my hat goes off to RedJake, its not that hard to hit Start, Shutdown, Restart; and it definately is worth a try 90% of the time.
Cryptie is offline  
Old 04-05-2004, 06:01 PM   #17 (permalink)
I'm a family man - I run a family business.
 
Redjake's Avatar
 
Location: Wilson, NC
Quote:
Originally posted by Cryptie
It is amazing how many people treat running Windows as if it were practicing VooDoo. It's really not that hard to see what happens and why. And my hat goes off to RedJake, its not that hard to hit Start, Shutdown, Restart; and it definately is worth a try 90% of the time.
Thank you. I'm glad at least one person sees how uneventful and easy this is. And practical. It's always worth a try (first even), because it can fix a lot of problems
__________________
Off the record, on the q.t., and very hush-hush.
Redjake is offline  
Old 04-05-2004, 06:17 PM   #18 (permalink)
Psycho
 
Homey_V's Avatar
 
Location: Canada
I personally hate restarting. It bugs the hell out of me. You shouldn't need to restart your computer to fix a problem that shouldn't exist in the first place. I agree with KnifeMissle on this one. Restarting should be tried when you've gone through all the other steps to fix the problem. This kind of attitude that restarting is an acceptable practice just gives people an excuse to continue writing shoddy code.

Granted I use linux and only restart my computer when the power to my UPS dies .
__________________
You did what with a duck?
Homey_V is offline  
Old 04-05-2004, 07:08 PM   #19 (permalink)
 
KnifeMissile's Avatar
 
Location: Waterloo, Ontario
Quote:
Originally posted by Cryptie
*edited because I can't give advice without being rude*

Try checking the security settings on the file before blaming explorer for having a lock on it. More than likely you didn't have rights to be accessing that file and that is why you were unable to do so.
C'mon! Even I can give advice without being rude (although others might disagree with me. Ask Redjake...).

If I understand you correctly, explorer obviously doesn't implement access privileges by locking files. In fact, access privileges aren't even the responsibility of explorer, it's controlled by the file system which is completely independent.
Also, if I didn't have access rights then how did the del program delete the file?

Do you run Windows with administrator privileges? I'd be very surprised if you didn't. However, that's my assumption so let me now say that access privileges wouldn't have prevented me from deleting the file.

Finally, one might imagine that explorer would simply tell me that I didn't have access to it rather than saying that another program had it locked. Of course, this would require you to trust me to recognize a file lock when I see one but I like to think you assume people know what they're talking about unless they say otherwise. I mean, I did show some technical proficiency in my post, did I not?

Considering all this, I find your conjecture less than likely...
KnifeMissile is offline  
Old 04-05-2004, 07:57 PM   #20 (permalink)
 
KnifeMissile's Avatar
 
Location: Waterloo, Ontario
Quote:
Originally posted by Redjake
Jesus, where not going to war with Iraq by restarting your computer. Whenever something on my computer is messed up, I restart. I'm sure there are thousands, of not millions, of other people who do the same thing. Why is restarting your computer such a big deal? Am I missing something? Is there some "restarting your computer" conspiracy that I'm not hearing about? Just restart it. See if it fixes it. If not, try something else It's not like you are only permitted a small amount of restarts per day. It would be different if I was saying "format and reinstall Windows." But nope. Restarting your computer. As in turning it off and turning it on. What's the big deal?

I'm glad you were able to fix the problem. But just because restarting didn't fix it this time around doesn't mean restarting your computer in the future is a waste and should be a last resort. It's usually the first thing I try, and it usually fixes the problem
Just to be clear, I did not restart my computer. It's not that rebooting didn't fix my problem (as your second last sentence implied), it's that I didn't even try! In fact, I'm sure rebooting would have fixed things! It's just that I would really hate to have to reboot and, if there were an alternative, I would take it. Yes, I did find an alternative and this makes me happy. I also thought it would be a funny anecdote to share among other geeks on TFP but, alas, I don't think anyone was amused by all this.

Now, you have mentioned incredulity over my attitudes against rebooting so let me try to explain to you why I dislike it so much.

You mentioned that you would have understood my position if I had to reinstall Windows, right? Why is that? I will take a guess and say it's because reinstalling is a colossal pain in the ass, right? Well, rebooting is a pain in the ass as well. Of course, it's not nearly as bad as reinstalling but it's bad enough for me to look for alternatives.

You see, if I were doing nothing, or only had winamp running, then I would have simply rebooted. Why not? I could simply restart winamp and it would probably have remembered my playlist. However, I have a little more than just winamp running. In fact, I have more than twenty applications running, about half of which I use for professional development (my job). Launching all those apps again would be annoying enough but there's more. Two of these applications are my RCS clients, which are in a peculiar state while I'm trying to perform a branch merge. I would hate to have to do this, again. Another is FireFox, which has about fifty tabs open (my estimate, after counting ten) and the save tab layout feature has never worked for me (it's version 0.8). Several of these applications are also Internet Explorer, on websites I'd hate to have to go find again (because FireFox has trouble displaying more than fifty tabs without the tab extensions installed on a 1600 pixel wide display). My MSDN browser is on a particularly interesting page that I'd hate to go find again (see a pattern here?). Not to mention that the undo and history stacks on several of my applications will be lost if I had to restart them.

I haven't even mentioned the aesthetic displeasure of having to reboot a crappy operating system. I am very pleased to see that, not only does Homey_V agree with me, but he even mentioned some important points and said them well. If I may quote him, "you shouldn't need to restart your computer to fix a problem that shouldn't exist in the first place." He also mentions how this attitude just adds to the complacency of developers and the general quality of software.


Let me diverge a bit and mention a story my sister told me. She signed up with AOL because they gave her several months of service, free, while she had every intention of cancelling before the trial period (she is unnecessarily cheap). She was using their latest software (6.0?) and she was confused by how unstable it was. She said it perpetually crashed and she didn't understand how it could be perfectly acceptable to a consumer to have to continually restart their software. Was this normal? Is all software like this? Is this just part of computing?

That's what you're saying when you say "ah, simply reboot." You're saying that it is perfectly normal to have your software incessantly fuck up on you. You're saying that this is okay and we should only expect more in the future.


Excuse me if I have higher standards than that...
KnifeMissile is offline  
Old 04-05-2004, 10:06 PM   #21 (permalink)
 
KnifeMissile's Avatar
 
Location: Waterloo, Ontario
In retrospect, I don't think rebooting would have helped my problem. The issue is that the very program used to delete files was holding a lock on the file. I even restarted this program (explorer), so we know the bug is quite reproducible. Windows Explorer is obviously to blame. It's a good thing I didn't bother rebooting 'cause I would have done so for nothing!

Of course, it helps that I actually read the Interests > Tilted Computers > XP "holds" onto files thread. Thanks, heyal256!

There is a possible fix but I'm wary about applying fixes I don't understand. Still, I almost understand it so I will investigate it when I get back to work, tomorrow...
KnifeMissile is offline  
Old 04-06-2004, 03:20 AM   #22 (permalink)
Knight of the Old Republic
 
Lasereth's Avatar
 
Location: Winston-Salem, NC
Ha ha, whenever I have this problem, I just restart and it fixes it immediately. It is a bit odd that ending the processes doesn't fix it. I just restart and it lets me delete it right after.

-Lasereth
__________________
"A Darwinian attacks his theory, seeking to find flaws. An ID believer defends his theory, seeking to conceal flaws." -Roger Ebert
Lasereth is offline  
Old 04-06-2004, 05:43 AM   #23 (permalink)
"Officer, I was in fear for my life"
 
hrdwareguy's Avatar
 
Location: Oklahoma City
Since the problem is solved, I'm locking this thread before it gets any more out of hand.
__________________
Gun Control is hitting what you aim at

Aim for the TFP, Donate Today
hrdwareguy is offline  
 

Tags
delete, file, windowsxp


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -8. The time now is 10:07 PM.

Tilted Forum Project

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360