It will display the path to the EXE in the first line and in the next line the path including the EXE file name. No other code and file necessary, compile this to an EXE, then start it. Make the verification: Create a new pjx project and put this code into main.prg If you really would like users to have the choice of the working directory allow the shortcut property to take effect, this means your code should do nothing at all. If you really want to achieve to change the default diretctory to where the EXE is, no matter what working directory someone specifies in a shortcut link to your EXE, then CD (JUSTPATH(SYS(16,0)) If this works for you, this means you need to do nothing. (CD dot, with dot representing the current directory). SYS(5) is the current drive and SYS(2003) the current directory within the current drive.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |