Page en cours de chargement

Donnez votre avis..
Que pensez-vous de gambaslinux.fr?
 
Interessant
Il manque des rubriques
excellent site
Résultats
INTERFACE GAMBAS
LOGICIELS GAMBAS 3
TUTORIELS
=Bibliothèque
STAT - La commande STAT
la Commande STAT



bonjour,
cet exemple tiré du forum francais sur gambas que nous a apporté Micio mérite des explications.
La commande STAT permet de récupéré des informations sur les fichiers.  voici donc lecode commenté :


'Affiche l'appartenance aux groupe d'utilisateurs:
PRINT Stat("~/Documents/box.ods").Group

Affiche si le fichier est un fichier caché:
PRINT Stat("~/Documents/box.ods").Hidden

Affiche la date du dernier accès au fichier:
PRINT Stat("~/Documents/box.ods").LastAccess

Affiche la date de la dernière modification:
PRINT Stat("~/Documents/box.ods").LastChange

Affiche la date de la dernière modification:
PRINT Stat("~/Documents/box.ods").LastModified

Affiche si loe fichier est un type lien symbolique:
PRINT Stat("~/Documents/box.ods").Link

Affiche si le fichier est un executable ou non:
PRINT Stat("~/Documents/box.ods").Mode

Affiche le chemin du fichier:
PRINT Stat("~/Documents/box.ods").Path

Affiche les permissions du fichier:
PRINT Stat("~/Documents/box.ods").Perm

Affiche le numero du groupe ou de l'utilisateur (ID)
PRINT Stat("~/Documents/box.ods").SetGID
PRINT Stat("~/Documents/box.ods").SetUID

Affiche la taille du fichier
PRINT Stat("~/Documents/box.ods").Size

Affiche le Sticky(???) :
PRINT Stat("~/Documents/box.ods").Sticky

Affiche l'heure de creation du fichier:
PRINT Stat("~/Documents/box.ods").Time

Affiche le type de fichier:
PRINT Stat("~/Documents/box.ods").Type

Affiche le nom du propriétaire du fichier :
PRINT Stat("~/Documents/box.ods").User

Merci pour ton aide Micio ! wink
A+

Date de création : 23/03/2010 @ 13:48
Dernière modification : 15/02/2022 @ 08:34
Catégorie : STAT
Page lue 5463 fois


Imprimer l'article Imprimer l'article


react.gifRéactions à cet article

Personne n'a encore laissé de commentaire.
Soyez donc le premier !


ACCES RAPIDE
RECHERCHE




LES INSTRUCTIONS
Divers
INSTRUCTIONS
Où ça, qui ça?
VISITES

   visiteurs

   visiteurs en ligne

ARCHIVES GAMBAS 1/2
^ Haut ^