Thread: delete files already in use

  1. #1
    Registered User
    Join Date
    Oct 2003
    Posts
    1

    delete files already in use

    hi !
    i was doing a batch to delete somes programs but somes of them seems to be already in use..
    then i can't delete them with the command :
    rd c:\directory\files\/q /s
    this command delete those how are not in use..
    then how tu delete and totally erase all files in or not in use ?
    thanks for support
    ++

  2. #2
    PC Fixer-Upper Waldo2k2's Avatar
    Join Date
    May 2002
    Posts
    2,001
    you have to be in true DOS mode to delete files that are in use, can't do it from windows box
    PHP and XML
    Let's talk about SAX

  3. #3
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    At least you cannot do it using DOS/Windows commands.

  4. #4
    PC Fixer-Upper Waldo2k2's Avatar
    Join Date
    May 2002
    Posts
    2,001
    ha, i didn't read very well:
    >>then how tu delete and totally erase all files in or not in use ?


    so you want everything gone? then don't use delete, use format
    that'll get rid of everything in use or not in use (if in a windows session, reboot to DOS first).
    PHP and XML
    Let's talk about SAX

  5. #5
    Registered User
    Join Date
    Nov 2003
    Posts
    5
    You must restart computer in Command prompt only as the other people said, but it is easier to use deltree /y command (this DOS program is located in WINDOWS\COMMAND).

  6. #6
    Been here, done that.
    Join Date
    May 2003
    Posts
    1,164

    Re: delete files already in use

    Originally posted by 6poo
    hi !
    i was doing a batch to delete somes programs but somes of them seems to be already in use..
    then i can't delete them with the command :
    rd c:\directory\files\/q /s
    this command delete those how are not in use..
    then how tu delete and totally erase all files in or not in use ?
    thanks for support
    ++
    Let's think about this. The file is in use means a program is running that is using the file. And you want to delete the file the program is using?

    Assume you are a program and the file is a ladder. Would you like it if someone took the ladder while you were using it? What do you think would happen?
    Definition: Politics -- Latin, from
    poly meaning many and
    tics meaning blood sucking parasites
    -- Tom Smothers

  7. #7
    PC Fixer-Upper Waldo2k2's Avatar
    Join Date
    May 2002
    Posts
    2,001
    actually i think he actually meant deleting the program itself while it was running. Which you can't do.
    I'm not completely sure, his post is kind of broken, but I think he meant
    >>totally erase all files in or not in use
    so that sounds like a format to me.
    I think he's gone though, otherwise we would have heard back from him.
    PHP and XML
    Let's talk about SAX

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Program Deployment and DLL/OCX Files?
    By dfghjk in forum C++ Programming
    Replies: 5
    Last Post: 06-16-2008, 02:47 AM
  2. added start menu crashes game
    By avgprogamerjoe in forum Game Programming
    Replies: 6
    Last Post: 08-29-2007, 01:30 PM
  3. How to Delete files
    By wyvern in forum C++ Programming
    Replies: 6
    Last Post: 12-01-2005, 01:42 PM
  4. why delete[] and delete?
    By dude543 in forum C++ Programming
    Replies: 4
    Last Post: 11-26-2005, 11:55 PM
  5. why is this prog crashing on delete?
    By Waldo2k2 in forum Windows Programming
    Replies: 2
    Last Post: 12-04-2002, 11:17 PM