PDA

View Full Version : delete files already in use



6poo
10-26-2003, 01:09 PM
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
++

Waldo2k2
10-28-2003, 10:51 PM
you have to be in true DOS mode to delete files that are in use, can't do it from windows box

VirtualAce
10-29-2003, 02:49 AM
At least you cannot do it using DOS/Windows commands.

Waldo2k2
10-29-2003, 07:01 AM
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).

ognjenmi
11-02-2003, 07:23 PM
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).

WaltP
11-03-2003, 10:32 PM
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?

Waldo2k2
11-03-2003, 11:07 PM
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.