Get this info from _VFP.ServerName
=messagebox(justpath(_VFP.ServerName))
>Hi Gang!
>
>question....
>
>I have created a standalone VFP EXE to run (or be called) from inside and outside of the MAIN Exectuable.
>
>When the standalone runs, I would like to be able to determine the Drive and Folder it is located in, when it is started.
>
>The catch is, the user may call it from some other drive and folder OTHER than where the standalone is located.
>
>For example...
>
>they are focused on G:\POS and the standalone is on K:\POSSHARE\
>
>So, if they call it from some other program from the G:\POS folder, how do I get reported back to the standaone that it is on K:\POSSHARE, instead of G:\POS or some other location?
>
>Thanks!
If it's not broken, fix it until it is.
My Blog