Page 1 of 1 1
Topic Options
#60873 - 2001-11-28 06:44 PM Script to change Directory Attributes
wattsjc Offline
Lurker

Registered: 2001-11-28
Posts: 3
Loc: York, PA
Does anyone have a script to change the attibutes for a Directory.

I am copying a lot of data from CDROM with robocopy. I can specify a switch that changes the file attribute, but the directories copy over with a read only attribute.


Thanks,

Jeff Watts

Top
#60874 - 2001-11-28 08:05 PM Re: Script to change Directory Attributes
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Jeff,

Welcome to the board!

Under 3.63+, look into the following methods:

GetFileAttr() retrieves attributes of a file
SetFileAttr() sets attributes of a file.

HTH,

- Kent

_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#60875 - 2001-11-28 08:08 PM Re: Script to change Directory Attributes
wattsjc Offline
Lurker

Registered: 2001-11-28
Posts: 3
Loc: York, PA
Thanks Kent!
Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 837 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.049 seconds in which 0.023 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org