Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Help me delete some files (Not a programming question)

Help me delete some files (Not a programming question)

Scheduled Pinned Locked Moved The Lounge
helpquestionsysadmintools
17 Posts 9 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jesse Evans
    wrote on last edited by
    #1

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

    G M D R N 7 Replies Last reply
    0
    • J Jesse Evans

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

      G Offline
      G Offline
      Gary Wheeler
      wrote on last edited by
      #2

      It sounds like someone else has the files open. A typical culprit is your antivirus software. Symantec/Norton screws up our build process sometimes if you have their 'real-time' checking turned on. They detect writes to executable files (.EXE's, .DLL's, and so on).


      Software Zen: delete this;

      1 Reply Last reply
      0
      • J Jesse Evans

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

        M Offline
        M Offline
        Matthew Faithfull
        wrote on last edited by
        #3

        If it's a Netware server this is known, old, sad, bug; reboot the server to fix. If it's a Windows or Samba server check on the server itself to see if the files really do still exist, they may have already been deleted but still be listed and you'll get this error. Otherwise it's a permissions problem, you have Create but not Delete permission on the folder. Poke the relevant IT person in the ribs and get it sorted :)

        Nothing is exactly what it seems but everything with seems can be unpicked.

        J 1 Reply Last reply
        0
        • J Jesse Evans

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

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          Make sure you don't have a rogue msdev.exe process running that has those files open. As a last resort, you could always add the two files to HKLM\System\CurrentControlSet\Control\Session Manager\PendingFileRenameOperations and reboot the machine.


          "Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

          "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

          J 1 Reply Last reply
          0
          • M Matthew Faithfull

            If it's a Netware server this is known, old, sad, bug; reboot the server to fix. If it's a Windows or Samba server check on the server itself to see if the files really do still exist, they may have already been deleted but still be listed and you'll get this error. Otherwise it's a permissions problem, you have Create but not Delete permission on the folder. Poke the relevant IT person in the ribs and get it sorted :)

            Nothing is exactly what it seems but everything with seems can be unpicked.

            J Offline
            J Offline
            Jesse Evans
            wrote on last edited by
            #5

            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

            L M 2 Replies Last reply
            0
            • D David Crow

              Make sure you don't have a rogue msdev.exe process running that has those files open. As a last resort, you could always add the two files to HKLM\System\CurrentControlSet\Control\Session Manager\PendingFileRenameOperations and reboot the machine.


              "Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

              "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

              J Offline
              J Offline
              Jesse Evans
              wrote on last edited by
              #6

              DavidCrow wrote:

              Make sure you don't have a rogue msdev.exe process running that has those files open.

              If that were the case should I not be able to see that from the Computer Management app (Start->Programs->Administrative Tools->Computer Managment->Shared Folders->Open Files)? They are not listed there.

              'til next we type... HAVE FUN!! -- Jesse

              1 Reply Last reply
              0
              • J Jesse Evans

                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

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #7

                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.

                P J 2 Replies Last reply
                0
                • J Jesse Evans

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

                  R Offline
                  R Offline
                  Ray Cassick
                  wrote on last edited by
                  #8

                  I have been seeing this more and more lately and am starting to think the culprit is Windows Live Search.


                  My Blog[^]
                  FFRF[^]


                  1 Reply Last reply
                  0
                  • J Jesse Evans

                    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

                    M Offline
                    M Offline
                    Matthew Faithfull
                    wrote on last edited by
                    #9

                    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.

                    1 Reply Last reply
                    0
                    • J Jesse Evans

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

                      N Offline
                      N Offline
                      NormDroid
                      wrote on last edited by
                      #10

                      Jesse you need FileMon[^], this will identify the file that is open by another process.

                      WPF - Imagineers Wanted Follow your nose using DoubleAnimationUsingPath

                      1 Reply Last reply
                      0
                      • J Jesse Evans

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

                        C Offline
                        C Offline
                        Clickok
                        wrote on last edited by
                        #11

                        Unlocker is the solution![^]


                        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:

                        J 1 Reply Last reply
                        0
                        • L Lost User

                          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.

                          P Offline
                          P Offline
                          Patrick Etc
                          wrote on last edited by
                          #12

                          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

                          J 1 Reply Last reply
                          0
                          • J Jesse Evans

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

                            L Offline
                            L Offline
                            Lost User
                            wrote on last edited by
                            #13

                            Use WinFixer or Errorsafe. They help very well.

                            J 1 Reply Last reply
                            0
                            • L Lost User

                              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.

                              J Offline
                              J Offline
                              Jesse Evans
                              wrote on last edited by
                              #14

                              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

                              1 Reply Last reply
                              0
                              • L Lost User

                                Use WinFixer or Errorsafe. They help very well.

                                J Offline
                                J Offline
                                Jesse Evans
                                wrote on last edited by
                                #15

                                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

                                1 Reply Last reply
                                0
                                • C Clickok

                                  Unlocker is the solution![^]


                                  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:

                                  J Offline
                                  J Offline
                                  Jesse Evans
                                  wrote on last edited by
                                  #16

                                  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

                                  1 Reply Last reply
                                  0
                                  • P Patrick Etc

                                    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

                                    J Offline
                                    J Offline
                                    Jesse Evans
                                    wrote on last edited by
                                    #17

                                    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

                                    1 Reply Last reply
                                    0
                                    Reply
                                    • Reply as topic
                                    Log in to reply
                                    • Oldest to Newest
                                    • Newest to Oldest
                                    • Most Votes


                                    • Login

                                    • Don't have an account? Register

                                    • Login or register to search.
                                    • First post
                                      Last post
                                    0
                                    • Categories
                                    • Recent
                                    • Tags
                                    • Popular
                                    • World
                                    • Users
                                    • Groups