VFP 9.0 Exe File Path

VFP 9.0 Exe File Path

Post by Alfre » Thu, 17 Nov 2005 18:09:57


I would like to check the path of exe file , it seems has a command to find
this answer.

for example,
C:\Test\Program\abc.exe

the display must show "C:\Test\Program\"

Can anyone tell me the command ?
Thanks a lot!!!
 
 
 

VFP 9.0 Exe File Path

Post by Jan Buce » Thu, 17 Nov 2005 18:17:15

JUSTPATH returns the path portion of a complete path and file name.

Syntax:

JUSTPATH(cFileName)



Alfred napsal(a):

 
 
 

VFP 9.0 Exe File Path

Post by Dan Freema » Fri, 18 Nov 2005 01:39:47

JustPath(Sys(16,0))
 
 
 

VFP 9.0 Exe File Path

Post by Cindy Wine » Fri, 18 Nov 2005 05:27:15

Hi Alfred,

Besides JustPath() you might be interested in Sys(5) and Sys(2003), so check
them out in Help.

--
Cindy Winegarden MCSD, Microsoft Visual FoxPro MVP
XXXX@XXXXX.COM www.cindywinegarden.com
Blog: http://www.yqcomputer.com/
 
 
 

VFP 9.0 Exe File Path

Post by Alfre » Fri, 18 Nov 2005 10:26:48

Thx a lot!!!
i really want this!!!
 
 
 

VFP 9.0 Exe File Path

Post by Alfre » Fri, 18 Nov 2005 10:27:34

Thx!!!
becoz Sys(5)+Sys(2003) mostly get the current path...anyway ,
the problem is fixed...thx your help!!!
 
 
 

VFP 9.0 Exe File Path

Post by Alfre » Fri, 18 Nov 2005 10:27:39

thx
 
 
 

VFP 9.0 Exe File Path

Post by Ander » Fri, 18 Nov 2005 19:59:11

If that's a VFP runtrime EXE or DLL check out the _VFP properties:
_VFP.FullName
_VFP.ServerName
_VFP.StartMode
_VFP.DefaultFilePath
_VFP.Version
_VFP.Caption

-Anders

"Alfred" < XXXX@XXXXX.COM > skrev i meddelandet