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 Use Variables & For Loops in Delphi?

1318


How to Read dos environment variables?

1291


How to Display the first frame of an AVI File ?

1301


'Invalid BLOb handle' error . what does this indicates?

1249


How to change Kylix directory permissions for all users when installed as root?

1293






How to Change the port of a printer?

1706


Does Delphi support the back-end?

496


Explain about Multi-Threaded ISAPI DLLs ?

1801


What to use in Kylix, as a possible replacement for ShellExecute in Windows?

1599


What is the procedure to access the database from delphi?

460


How can I create an identical binary executable in Delphi?

1482


How to Create a delay without a timer?

1195


How to Hide the application from the Windows Taskbar?

1220


How to retrieve a list of assigned properties ?

1225


How to Disable close button of a window ?

1362