>Hi,
>
>I had a query, if someone can help me out. I have VFP application which generates a .txt file to which some output is spooled.
>
>After the file has been created, i want to open up this file in NOTEPAD from within the VFP application. I also want the contents to be read only, when the file is opened in Notepad.
>
>Can someone help me on this. Urgently awaiting a response
>
>Many Thx & Rgds,
>
>KB
There's probably neater ways of doing this, but the following should work :
RUN "attrib +r filename.txt"
RUN "notepad filename.txt"
Note - if the file is too big, then WordPad will be used. Is there a specific reason you need to display a readonly file with an editor ?
Len Speed