|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (9 bit)
Join Date: Mar 2005
Posts: 326
|
DOS question
How would you remove a file without using DEL or DELETE please?
TIA |
|
|
|
|
|
#2 |
|
Forum Administrator
Staff
Premium Member
Join Date: May 2000
Location: Joplin MO
Posts: 37,786
|
Deltree works too - but be careful. That only works in Dos 6.x or 7.x, not in a 2K/XP command environment.
|
|
|
|
|
|
#3 |
|
Professional gadfly
|
Copying nothing to the file would eliminate the data, but the file would still exist. You could also remove the directory it is in, but that would destroy all other files in that directory too.
Is this some kind of trick question? |
|
|
|
|
|
#4 |
|
Member (9 bit)
Join Date: Mar 2005
Posts: 326
|
no just a question I was asked and didn't know the answer.
|
|
|
|
|
|
#5 |
|
Come in Ray...
Join Date: Sep 2004
Posts: 1,668
|
Don't know if this is what you are looking for, but if you have PHP installed, you could do:
Code:
php -r 'unlink( "file\\to\\delete" );' |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|