Hi,
Using the Erase command use the /F switch which will force the removal
of the file.
Here is the help output for the Erase command
C:\>help erase
Deletes one or more files.
DEL [/P] [/F] [/S] [/Q] [/A[[:]attributes]] names
ERASE [/P] [/F] [/S] [/Q] [/A[[:]attributes]] names
names Specifies a list of one or more files or directories.
Wildcards may be used to delete multiple files. If a
directory is specified, all files within the directory
will be deleted.
/P Prompts for confirmation before deleting each file.
/F Force deleting of read-only files.
/S Delete specified files from all subdirectories.
/Q Quiet mode, do not ask if ok to delete on global
wildcard
/A Selects files to delete based on attributes
attributes R Read-only files S System files
H Hidden files A Files ready for
archiving
- Prefix meaning not
If Command Extensions are enabled DEL and ERASE change as follows:
The display semantics of the /S switch are reversed in that it shows
you only the files that are deleted, not the ones it could not find.
If this doesn't work, make a file in that directory with notepad or
something simiar and put a single line of text in it, doesn't matter
what it is, i.e "This is a line of text" and save the file as
test.txt. Next copy that file to the offending file name. So if this
0k file of your is called badfile.dat use this command.
C:\ cp test.txt badfile.dat
This will overwrite the file. Then delete the file badfile.dat.
Thanks,
webadept-ga |
Clarification of Answer by
webadept-ga
on
10 Jan 2003 23:07 PST
You say it can be moved... do you have a CDROM burner?
also clarfiy that you tried mtnhike-ga's suggestion below, and what
the results of that was. Please also clarify that you started this
server in safe-mode and could not remove the file then as well, and
that you are using the command line to try these things, not the GUI.
Also, what filesystem are you using on this box, and what is the name
of the directory you are trying to remove (the exact name) and do you
have any free space on the disk at all. If you delete some other file,
temp files or something, do you still not have any room on the disk?
Also, please post the output of
dir /A
in total please so I can see what that says.
Lastly do you have Perl installed on this machine.
Thanks,
webadept-ga
|