Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I opened a file using Vim from MinGW's MSYS on Windows 7, and it crashed, and it's left behind a .filename.swp file which I cannot delete! I'm in the local admin group, and I tried following this, in an administrator command propmpt, and that didn't work. Nor did logging on as the local admin and performing the same actions. Any suggestions?

Update: Woops, forget to include the error messages :) From the console I get: "ERROR: Access is Denied" when executing takeown /f .filename.swp as an Administrator. When going through Right Click->Properties->Security, it comes up with something I've never seen before saying: "You do not have permission to view this object's security properties. To view it's security properties you can try taking ownership of the object..." When I do try, I get the same, unhelpful message: "Access is Denied". The only other interesting thing I can see is that under the "Current Owner" field it says: "Unable to display current owner.".

share|improve this question
1  
Hard to say without you telling us what the error is! –  th3dude Apr 23 '10 at 18:46
    
Haha, woops. Brainfart's happen at 3am I guess :) Fixed now. –  Adam C. Apr 23 '10 at 18:53
    
Thanks :) Much better now! –  th3dude Apr 23 '10 at 18:59
    
Very Similar to this post by the same user...superuser.com/questions/160225/… –  Moab Nov 3 '10 at 23:46
add comment

2 Answers

up vote 1 down vote accepted

I always try to use an application called Unlocker first. This will attempt to unlock any restrictions currently on the file.

If that fails, then it sounds like you're basically locked out from doing anything in Windows. I would consider using some type of Live CD that will let you boot to a temporary OS and access your disc to delete the file.

share|improve this answer
    
Ahah! Cheers :) No context-menu entry was added for Unlocker, so I went looking for it in the process manager, and whilst there I saw vim.exe was still running, and ending that process got rid of the file. It's quite odd that it came up with "Access Denied" rather than that it was in use, maybe it's an MinGW MSYS/Windows integration problem? Very odd... Thanks for your help! –  Adam C. Apr 23 '10 at 19:22
    
Welcome :) Glad to help –  th3dude Apr 23 '10 at 19:25
add comment

Try Killbox - http://killbox.net/

.swp is a swap file - please be sure this is leftover from MSYS.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.