Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to mark and unmark a file read only

Status
Not open for further replies.

angelleynes

Programmer
Dec 28, 2001
46
US
how can i mark a file to read only and how to unmark it.

thanks!
 
Do you mean using Fox? You can always right click, go to 'Properties' and select 'Read Only'.

Dave S.
 
Sorry, let me add - that link will do what you need.

Dave S.
 
HI

TO set the file attribute to read only..

myFile = "The File you want to set attribute with path"
RUN ATTRIBUTE +R &myFile

to set to read write..
RUN ATTRIBUTE -R &myFile

Hope this helps :) ramani :-9
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
 
Hi Ramani,

that didn't work! I have the following example:
myfile='c:\toarc\kintproc.prg'
run attribute +R &myfile

 
Oh sorry.. a small correction.. not attribute.. only attrib..
Use the code...

myfile='c:\toarc\kintproc.prg'
run attrib +R &myfile

Hope this solves your problem :) ramani :-9
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
 
that worked thank!, now my question is how to return multiple parameters?

thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top