Solved

Only read files

Posted on 1998-05-21
1
128 Views
Last Modified: 2010-04-06

HOw can i know when an file is an only reading file?

:) Thanks!
0
Comment
Question by:suetonio
1 Comment
 
LVL 1

Accepted Solution

by:
Socrates050697 earned 40 total points
ID: 1347100
use FileGetAttr as follows


  if (FileGetAttr('myfile.xxx') and faReadOnly)>0 then
    ShowMessage('is read only')
  else
    ShowMessage('not read only');



Socrates
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Activex get website that activex running on 3 85
how to center only a line in richedit? 4 52
Working with hours 3 46
Dynamically Created Query 3 50
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now