Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Readonly
Message
From
12/11/2002 16:13:18
 
 
To
12/11/2002 16:09:23
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00721811
Message ID:
00721816
Views:
7
>All,
>
> Is there a way to make an entire folder readonly with VFP?

You can use either the WSH Scripting.FileSystemObject to modify the attributes of the folder and its files, or call the Win32 API function SetFileAttributes() to do this - there are examples of modifying the attributes of a file or folder in the 5 part WSH article that george Tasker and I wrote, as well as a FAQ showing how to call SetFileAttributes() (you'll also need to use GetFileAttributes()).
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform