Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to change file attribut...
Message
From
27/11/2001 13:34:28
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00586467
Message ID:
00586482
Views:
18
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
Previous
Reply
Map
View

Click here to load this message in the networking platform