Help me delete some files (Not a programming question)
-
Matthew Faithfull wrote:
Poke the relevant IT person in the ribs and get it sorted
Uh, I'm the relevant IT person... :sigh: It's a Windows server (Server 2000). I can remote into it; the files are still there and can't be deleted that way, either. The folder they are in is shared to Everyone with full rights. Oddly, when I bring up a properties dialog on the files, the only tab visible is the general properties; the version, security and summary tabs are missing. Any other ideas? TIA!
'til next we type... HAVE FUN!! -- Jesse
-
--------------------------- Error Deleting File or Folder --------------------------- Cannot delete <filename>: Access is denied. Make sure the disk is not full or write-protected and that the file is not currently in use. --------------------------- OK --------------------------- This is the message I get when trying to delete two files generated by MSVC 6.0. Both the .exe and the .ilk file are affected. I cannot generate a new executable because the existing one cannot be deleted. This is what VC prints to the status window during a build cycle: Linking... LINK : LNK4073: cannot create map for .ILK file; linking nonincrementally LINK : fatal error LNK1104: cannot open file ".\<filename>.exe" Error executing link.exe. Note: <filename> is a placeholder in this message for the actual name. The .exe file no longer has its custom icon and the .ilk file is 0 bytes. Both files are in a shared folder on a server. I've tried logging off from the server but that does not work. I had a look for open files in the Shared Folders section using the Computer Management utility, but the files are not listed. Does anyone out there know of a tool that can perform an unconditional delete? TIA!
'til next we type... HAVE FUN!! -- Jesse
-
Matthew Faithfull wrote:
Poke the relevant IT person in the ribs and get it sorted
Uh, I'm the relevant IT person... :sigh: It's a Windows server (Server 2000). I can remote into it; the files are still there and can't be deleted that way, either. The folder they are in is shared to Everyone with full rights. Oddly, when I bring up a properties dialog on the files, the only tab visible is the general properties; the version, security and summary tabs are missing. Any other ideas? TIA!
'til next we type... HAVE FUN!! -- Jesse
The last resort is always to create a boot floppy/CD/USB Key. Boot the server with it and then go in at the DOS level and delete the bad files. Of course if your partition is NTFS formatted this is a little tricky but can be achieved. It does sound like something has gone badly wrong here. Backups?
Nothing is exactly what it seems but everything with seems can be unpicked.
-
--------------------------- Error Deleting File or Folder --------------------------- Cannot delete <filename>: Access is denied. Make sure the disk is not full or write-protected and that the file is not currently in use. --------------------------- OK --------------------------- This is the message I get when trying to delete two files generated by MSVC 6.0. Both the .exe and the .ilk file are affected. I cannot generate a new executable because the existing one cannot be deleted. This is what VC prints to the status window during a build cycle: Linking... LINK : LNK4073: cannot create map for .ILK file; linking nonincrementally LINK : fatal error LNK1104: cannot open file ".\<filename>.exe" Error executing link.exe. Note: <filename> is a placeholder in this message for the actual name. The .exe file no longer has its custom icon and the .ilk file is 0 bytes. Both files are in a shared folder on a server. I've tried logging off from the server but that does not work. I had a look for open files in the Shared Folders section using the Computer Management utility, but the files are not listed. Does anyone out there know of a tool that can perform an unconditional delete? TIA!
'til next we type... HAVE FUN!! -- Jesse
-
--------------------------- Error Deleting File or Folder --------------------------- Cannot delete <filename>: Access is denied. Make sure the disk is not full or write-protected and that the file is not currently in use. --------------------------- OK --------------------------- This is the message I get when trying to delete two files generated by MSVC 6.0. Both the .exe and the .ilk file are affected. I cannot generate a new executable because the existing one cannot be deleted. This is what VC prints to the status window during a build cycle: Linking... LINK : LNK4073: cannot create map for .ILK file; linking nonincrementally LINK : fatal error LNK1104: cannot open file ".\<filename>.exe" Error executing link.exe. Note: <filename> is a placeholder in this message for the actual name. The .exe file no longer has its custom icon and the .ilk file is 0 bytes. Both files are in a shared folder on a server. I've tried logging off from the server but that does not work. I had a look for open files in the Shared Folders section using the Computer Management utility, but the files are not listed. Does anyone out there know of a tool that can perform an unconditional delete? TIA!
'til next we type... HAVE FUN!! -- Jesse
-
Download the Systems Internals suite, from Microsoft, there are some utility programs there that will help you in this and other problems that you will come across.
I did that just the other day. I have Media Center at home and I deleted a recording from the Media Center interface, but the actual recorded file didn't get deleted. I tried deleting it but the OS had locked it for some reason. I whipped out Process Explorer, found the handle to the file, and killed it. Immediately, the activity I had been observing on my harddrive for a couple of days stopped, and the file disappeared. For some reason, the file had become locked when MC tried to delete it and MC KEPT trying to delete it, causing my harddrive to never shut down. So yeah.. Process Explorer by SysInternals should do the trick :)
"If you think of yourselves as helpless and ineffectual, it is certain that you will create a despotic government to be your master. The wise despot, therefore, maintains among his subjects a popular sense that they are helpless and ineffectual." - Frank Herbert
-
--------------------------- Error Deleting File or Folder --------------------------- Cannot delete <filename>: Access is denied. Make sure the disk is not full or write-protected and that the file is not currently in use. --------------------------- OK --------------------------- This is the message I get when trying to delete two files generated by MSVC 6.0. Both the .exe and the .ilk file are affected. I cannot generate a new executable because the existing one cannot be deleted. This is what VC prints to the status window during a build cycle: Linking... LINK : LNK4073: cannot create map for .ILK file; linking nonincrementally LINK : fatal error LNK1104: cannot open file ".\<filename>.exe" Error executing link.exe. Note: <filename> is a placeholder in this message for the actual name. The .exe file no longer has its custom icon and the .ilk file is 0 bytes. Both files are in a shared folder on a server. I've tried logging off from the server but that does not work. I had a look for open files in the Shared Folders section using the Computer Management utility, but the files are not listed. Does anyone out there know of a tool that can perform an unconditional delete? TIA!
'til next we type... HAVE FUN!! -- Jesse
-
Download the Systems Internals suite, from Microsoft, there are some utility programs there that will help you in this and other problems that you will come across.
Richard A. Abbott wrote:
Download the Systems Internals suite
Looked at a couple of their file/disk utilities. When I point AccessEnum (displays who has access to items within a directory or registry key) to the folder contained the files, they show up in the list but have '???' in the permissions columns. Care to recommend any of your favorite tools? TIA!
'til next we type... HAVE FUN!! -- Jesse
-
Abdul Qahhar wrote:
Use WinFixer or Errorsafe.
Googled 'em and came up with this: http://en.wikipedia.org/wiki/WinFixer[^] I think I'll stay away from those, thanks.
'til next we type... HAVE FUN!! -- Jesse
-
For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life.(John 3:16) :badger:
Thanks for the tip! Tried it and it would not delete the files. It did, however, offer to delete at the next reboot. Can't do that 'til Monday (it's a production server but Monday's an off day) so we'll see what happens then.
'til next we type... HAVE FUN!! -- Jesse
-
I did that just the other day. I have Media Center at home and I deleted a recording from the Media Center interface, but the actual recorded file didn't get deleted. I tried deleting it but the OS had locked it for some reason. I whipped out Process Explorer, found the handle to the file, and killed it. Immediately, the activity I had been observing on my harddrive for a couple of days stopped, and the file disappeared. For some reason, the file had become locked when MC tried to delete it and MC KEPT trying to delete it, causing my harddrive to never shut down. So yeah.. Process Explorer by SysInternals should do the trick :)
"If you think of yourselves as helpless and ineffectual, it is certain that you will create a despotic government to be your master. The wise despot, therefore, maintains among his subjects a popular sense that they are helpless and ineffectual." - Frank Herbert
Patrick Sears wrote:
Process Explorer by SysInternals should do the trick
And so it did! Thanks a bunch, Patrick. Several helpful people suggested using a utility from the Sysinternals site; I was looking only at the file system stuff and none of them did the trick. Oh, and it turns out that the culprit (the app holding onto the files' handles) was McShield.exe! I've never had a problem with the McAfee Virus Scan product; this was pretty weird. Anyway, thanks to all of you who ventured to help me with my problem. This is a great place!
'til next we type... HAVE FUN!! -- Jesse