? justfname(justpath(lcYourEXEFullName))
Where, of course, lcYourEXEFullName is the fullpath + name of the exe, for example
D:\Projects\vfp\office\accounts\myEXE.exe
>My problem still not solved
>Actually I want to get the last folder name where exe is located.
>
>My exe file is located in accounts folder
>D:\Projects\vfp\office\accounts
>
>So I want to get accounts as last folder name
>
>Please help agina
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?
"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare
"To die for a religion is easier than to live it absolutely"
Jorge L. Borges