Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Making a file Read-Only
Message
From
26/01/2000 12:16:01
 
 
To
26/01/2000 11:18:08
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00322772
Message ID:
00322935
Views:
19
>>>Anyone knows if it is possible to set a file's Read-Only attribute in VFP6 SP3?
>
>>In addition to what Cetin told you, the Windows Script Host File System object can do this with both files and folders
>
>Thanks George and Randy. I'd rather directly use the API since it really isn't complicated at all. I assume that directly calling the API will be faster than creating a COM object, right?
>
>However, you got me interested into the WSH. Does it come with Win95, 98, NT, 2000, other software? I got an NT4WS SP4 here and the CREATEOBJECT call worked, but how much can I assume on this? Also, anywhere I can find a reference (properties, methods, etc)? I looked on MS' web site not long ago for this but all I found was text saying that WSH is so great but I could not find anything useful! :(
>

It comes with Win98, Win2K, and any version of IE4 or later. It can be added on a royalty-free basis to Win9x and WinNT 4 as well. See my FAQ entry. Download it. Use it. It's lots easier than the API.
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