Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Opening a File In Notepad Thru a Visual Foxpro Code
Message
De
03/12/2001 06:09:44
 
 
À
03/12/2001 05:48:30
Kiran Bajaj
Yes Bank Ltd
Mumbai, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00588615
Message ID:
00588620
Vues:
28
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform