Page 1 of 1 1
Topic Options
#139186 - 2005-05-05 03:46 PM Folder attributes
Hugues Offline
Fresh Scripter

Registered: 2005-04-04
Posts: 34
Loc: Canada, Quebec, Montreal
Is it possible to change folder attributes ?
I know it possible for the files but for the folder ?? and how ?

Thank's

Top
#139187 - 2005-05-05 06:27 PM Re: Folder attributes
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4665
Loc: The Netherlands
Quote from the manual:

Quote:


SETFILEATTR
Action
Sets the attributes of a file.

Syntax
SETFILEATTR ("file name", attributes)

Parameter
File name
Identifies the file of which you want to set the attributes.
Attributes
Attributes to set for the file. The attributes can be one or more of the following values:
1 Read only. The file or directory is read-only. Applications can read the file but cannot write to it or delete it. In the case of a directory, applications cannot delete it.
2 Hidden. The file or directory is hidden. It is not included in an ordinary directory listing.
[cut].....[/cut]






so this would make the testfolder folder on c: hidden.

Code:

$Result = SetFileAttr("c:\testfolder", 2)

_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
Page 1 of 1 1


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

Who's Online
0 registered and 221 anonymous users online.
Newest Members
dimi575, Drecksnacken, Nlill, webtools321, multiman
17734 Registered Users

Generated in 0.028 seconds in which 0.012 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