Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Opening a File In Notepad Thru a Visual Foxpro Code
Message
From
03/12/2001 06:09:44
 
 
To
03/12/2001 05:48:30
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00588615
Message ID:
00588620
Views:
27
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform