🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #12014

Re: Change File Attribute

#12014
From: Thorsten Kettner
Date: Tue, 06 Jan 2004 13:27
12 lines
1290 bytes
"MEMDB" <adv@memdb.com> wrote:
>Any method to set all files in the directory NOT Readonly 
>after copying from CD-ROM (i.e., change the attributes of all 
>files to be writable)?

A very simple way:

  WinExec("cmd.exe /c attrib -r c:\\temp\\*.*", SW_HIDE);

(Doesn't work on Win 3.1, because it was command.com instead of
cmd.exe then).
Technical Details
Message-ID: <3ffac5b6$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3ffa8fbf$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,52a102d42fa80b9a
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-01-06 06:40:10 PST
From: "Thorsten Kettner" <ANSWERBYthorsten.kettner@otto.de>
Sender: "Thorsten Kettner" <ANSWERBYthorsten.kettner@otto.de>
Reply-To: "Thorsten Kettner" <ANSWERBYthorsten.kettner@otto.de>
Subject: Re: Change File Attribute
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 80.85.196.91     
X-Forwarded-For: 129.225.1.108
References:  <3ffa8fbf$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <3ffac5b6$1@newsgroups.borland.com>
Date: 6 Jan 2004 06:27:02 -0700
X-Trace: newsgroups.borland.com 1073399222 207.105.83.66 (6 Jan 2004 06:27:02 -0700)
Lines: 12
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail