From: Eli Zaretskii Newsgroups: comp.os.msdos.djgpp Subject: Re: File Handling Question Date: Sun, 26 Sep 1999 08:22:03 +0200 Organization: NetVision Israel Message-ID: References: <7seki4$fsq$1 AT winter DOT news DOT rcn DOT net> NNTP-Posting-Host: is.elta.co.il Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: news.netvision.net.il 938326849 20983 199.203.121.2 (26 Sep 1999 06:20:49 GMT) X-Complaints-To: abuse AT netvision DOT net DOT il NNTP-Posting-Date: 26 Sep 1999 06:20:49 GMT X-Sender: eliz AT is In-Reply-To: <7seki4$fsq$1@winter.news.rcn.net> Lines: 21 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk 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.