|
-
February 11th, 2000, 02:45 PM
#1
Is it read only
How can I figure if a file has a read only property checked?
Thank you!
Alex!
-
February 11th, 2000, 03:04 PM
#2
Re: Is it read only
set a reference to the Microsoft Scripting Runtime and use code similar to this:
Dim fso as Scripting.FileSystemObject
Dim ofile as Scripting.File
set fso = new Scripting.FileSystemObject
set ofile = fso.GetFile("C:\yourfile.txt")
MsgBox ofile.Attributes = ReadOnly
set ofile = nothing
set FSO = nothing
Hope this helps,
John
John Pirkey
MCSD
www.ShallowWaterSystems.com
John Pirkey
MCSD (VB6)
http://www.stlvbug.org
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|