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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Notepad and VFP9

Status
Not open for further replies.

paul1941

Programmer
May 25, 2006
32
BE
Hello all

I'm using Notepad for some reasons from VFP
Is there a system to call Notepad, OPen, All files in one time?

regards, Paul
 
what files? try:
Code:
oWS = CREATEOBJECT([WScript.Shell])
lnFiles = ADIR(laFiles,[FULLPATH\*.EXT])
FOR lnFor = 1 TO lnFiles
    IF NOT LEFT(laFiles[lnFor,1],1) == [.]
       lcCommand = [Notepad ]+FULLPATH+[\]+laFiles[lnFor,1]
       oWS.Run(lcCommand, 3, .f.)
    ENDIF
NEXT

Borislav Borissov
VFP9 SP1, SQL Server 2000/2005.
 
Paul,

Are you saying that VFP is using wordpad rather than the VFP editor when you modify a .prg? If so, you need to look at your configuration file. Do you have TEDIT set to wordpad?

Ken
 

Paul,

I am not sure what is the reason you use Notepad, but depending on your needs, you might want to try VFP's native MODIFY FILE instead - it opens text files much faster (and much larger files, too) than Notepad. You can use a similar loop with ADIR() to open them all, if you wish.
 
Hello Stella740pl

It's working fine

thank you

Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top