How to change file attributes programmatically?

Answer Posted / ankit

Use chmod function which takes first parameter as filename
and next parameter as the permission.

This function is available even on Windows as against the
general myth that only UNIX and Linux support it.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to Run 16-bit Delphi on Windows NT4?

1452


How to use far pointers?

1762


How to create indexes with the TTable create function?

1442


Can ALTER TABLE statment on Paradox tables removes passwords ?

1296


How to Limit the amount of text entered in a TEdit?

1390


I am trying to call from Delphi and it GPFs. Whats up?

671


How to Display a 24 bit True Color bitmap image on a 256 color display?

1804


When I use the Glyph property, how do I know which color is transparent?

682


Explain the findfirst method?

644


How to Loada local html file in the HTML control ?

1591


How to Create a rotated font?

1539


what are the files that need to be included with applications using MSACCESS?

1343


How SQL Links determines if an MSSQL table can refreshed?

1486


Can you use the Naming Service with the version of VisiBroker that comes with Delphi 5 Enterprise?

1598


What types of Routers are able to be used?

1375