Mail Archives: djgpp/1999/09/27/02:27:29
On Thu, 23 Sep 1999, Francis Huang wrote:
> If I go to DOS, the file attributes for the registry file and
> other system files are set to Hidden+Read Only, so DOS refuses to delete
> them. Also, then some files will not copy back to C: drive because they are
> also hidden. How do I either set a file's attribute so DOS will copy the
> files?
If you want to do it in plain DOS, one way is to use the DJGPP port of
GNU Fileutils. There's a program there called `cp' (for ``Copy''), when
invoked with the -f switch it will copy read-only files. use -r switch
for copying directory trees.
Under Windows, you cannot copy/delete files which are in use, because
Windows won't let you.
But I rather think that what you do is not the right solution for your
problem. If you see any significant speedup by copying files like you
describe, something's seriously wrong with your system setup. Perhaps
running a defragmenter on your C disk will remove the problem.
- Raw text -