Thread: Cant delete a file

  1. #1
    Microsoft. Who? MethodMan's Avatar
    Join Date
    Mar 2002
    Posts
    1,198

    Cant delete a file

    I had created an image in a adobe Photoshop 7, and then deleted it I cant delete it from the recycling bin for some reason.
    This is the error I get:

    Cannot move Dc47: It is being used by another person or porgram. Close any programs that might be using the file and try again.

    Nothing is using it!!!!!!!!!!!!

    The file name isnt Dc47, I guess thats an error code

    Any suggestions?

    I cant restore it either, I get the same message
    -MethodMan-

    Your Move:Life is a game, Play it; Life is a challenge, Meet it; Life is an opportunity, capture it.

    Homepage: http://www.freewebs.com/andy_moog/home.html

  2. #2
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    hit ctrl + alt +del and bring up the task manager. Click the processes tab and end the process of photoshop. Just because your not running it anymore it may still be on the list. Theres a 99.9% chance that there is some service running on that list thats using the file, thats how i usually fix this when it happens, which isn't to often.

  3. #3
    Microsoft. Who? MethodMan's Avatar
    Join Date
    Mar 2002
    Posts
    1,198
    Thanks for the advice guys.

    I ended up restarting the computer, and tried to delete the file right away and it worked. I dont think I shut down or restarted the computer since I used that file, maybe that is what caused issues with it.
    -MethodMan-

    Your Move:Life is a game, Play it; Life is a challenge, Meet it; Life is an opportunity, capture it.

    Homepage: http://www.freewebs.com/andy_moog/home.html

  4. #4
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    See and my reason is why. A service was still tagged as using the file, rebooting clears that service tag and therefore you were able to delete it. Next time hit ctrl+alt+del, try and del it and see what service (not explorer) shoots up on mem usage when u do it, or has a name pertaining to the file/software and end that process, you'll save yourself alot of time and energy.

    Good luck.

  5. #5
    Registered User
    Join Date
    Nov 2002
    Posts
    10
    I've had that problem a couple times, too. Usually, it's the "in use" problem you
    guys already went over.

    One that really got me stuck was when I accidentally designated a big bmp as
    "read only". Then I couldn't even edit it, much less delete it! That make it a totally
    useless file. I looked and looked, google, Win32 Prog Ref, boards, all over,
    and I never could figure out how to change that read only flag. I could move it,
    though, so I moved it to a floppy. Then when I tried to erase or re-use that floppy,
    there it still was! So I got a big magnet and scrambled it. Problem solved, in
    a backwards sort of way.

    Anyway, anybody know how to directly change that "read only" flag?
    globalerr_h
    Win98se
    Dev-C++ 4
    Borland55 with JFE

  6. #6
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    Anyway, anybody know how to directly change that "read only" flag?
    Hmm, first i'd like to comment that i THINK you should be able to load into dos, instead of windows, and remove the file itself, not sure tho.

    As far as this issue i tried to recreate the issue, but seems i had no problem removing it even when it was read only. But to remove the read only tag could u not just right click---properties---and uncheck "read only"?

  7. #7
    Evil Member
    Join Date
    Jan 2002
    Posts
    638
    Anyway, anybody know how to directly change that "read only" flag?
    Code:
    chmod +w file </*nix>

  8. #8
    Registered User
    Join Date
    Nov 2002
    Posts
    10
    Hah! As one of my heroes once said, DOH!
    globalerr_h
    Win98se
    Dev-C++ 4
    Borland55 with JFE

  9. #9
    Registered User
    Join Date
    Nov 2002
    Posts
    10
    In my own feeble defense I must say I think I remember trying to change
    the read-only attribute in the properties dialog, and couldn't get it to do it.
    Hence the problem.

    What is

    Code:
    chmod +w file </*nix>
    Is that CommandLine/DOS stuff? If it is, where can I look it up? I've only seen or
    used it, lately , in using Borland5.5. I've seen people use it to do some
    powerful stuff, to fix Win crashed, for instance. Can you steer me towards any
    current on-line refs?

    Thanks!
    globalerr_h
    Win98se
    Dev-C++ 4
    Borland55 with JFE

  10. #10
    Registered User
    Join Date
    Jul 2002
    Posts
    161
    To change file attributes in win9x. Open windows explorer (file manager). Highlight and right click the file. Select properties. Check or uncheck the appropriate boxes as desired. Click OK.

    Probably works in other versions of windows.

    chmod is a linux (bash command line) command.

  11. #11
    Registered User adamviper's Avatar
    Join Date
    Nov 2002
    Posts
    132
    thats what you get for using adobe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A development process
    By Noir in forum C Programming
    Replies: 37
    Last Post: 07-10-2011, 10:39 PM
  2. Newbie homework help
    By fossage in forum C Programming
    Replies: 3
    Last Post: 04-30-2009, 04:27 PM
  3. Basic text file encoder
    By Abda92 in forum C Programming
    Replies: 15
    Last Post: 05-22-2007, 01:19 PM
  4. Batch file programming
    By year2038bug in forum Tech Board
    Replies: 10
    Last Post: 09-05-2005, 03:30 PM
  5. simulate Grep command in Unix using C
    By laxmi in forum C Programming
    Replies: 6
    Last Post: 05-10-2002, 04:10 PM