Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to change file attribut...
Message
De
27/11/2001 13:34:28
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00586467
Message ID:
00586482
Vues:
19
This message has been marked as a message which has helped to the initial question of the thread.
>I what to change the file attribute to read only.
>How do we do this again?
lparameters SetRO
declare integer SetFileAttributes in Win32API ;
	string @ lpFileName,  integer dwFileAttributes
declare integer GetFileAttributes in Win32API ;
  string @ lpFileName
lcFileName = getfile()
if SetRO
 SetFileAttributes(@lcFilename, bitset(GetFileAttributes(@lcFilename),0))
else
 SetFileAttributes(@lcFilename, bitclear(GetFileAttributes(@lcFilename),0))
endif
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform