|
#1
|
|||
|
|||
|
Comment faire pour changer l'attribut d'un fichier. Plus précisément rende un fichier en readOnly tout à fait normal.
|
|
#2
|
|||
|
|||
|
Faites une recherche sous Google, vous allez trouver plusieurs exemples en C. Vous pouvez utiliser les meme fonctions en PPL (Windows API).
Code:
#declareapi SetFileAttributes kndll SetFileAttributes 2 1
SetFileAttributes("c:\\test.txt", FILE_ATTRIBUTE_HIDDEN | FILE_ATTRIBUTE_READONLY)
|
|
#3
|
|||
|
|||
|
Merci du conseil.
|
![]() |
| Tags |
| attributes, fichier |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|