Page loading

Share your opinion
What do you think about gambaslinux.fr?
 
Interesting
It miss some informations
Excellent website
Results
WIDGETS GAMBAS
GAMBAS 3 SOFTWARES
TUTORIALS
Library
STAT - STAT command
French only sorry...
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+

Creation date : 23/03/2010 @ 13:48
Last update : 15/02/2022 @ 08:34
Category : STAT
Page read 5503 times


Print the article Print the article


react.gifReactions to this article

Nobody gave a comment yet.
Be the first one to do it!


QUICK MENU
SEARCH




LANGUAGE
COMPONENTS
Other
LANGUAGE
Where, who?
VISITS

   visitors

   visitors online

ARCHIVES GAMBAS 1/2
^ Top ^