Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - getexec() return full path name of currently running program http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 getexec()           Return full path name of currently running program
------------------------------------------------------------------------------
 Declaration
   system.hdr

 Syntax
   func char getexec extern

 Arguments
   None.

 Return
   The name of the currently running program with full path specification.

 Description
   The getexec() function returns the full path name of the currently
   running program. Use this function if you want to access files which are
   located in the same path as the application program's exe file.

 Example
   #define EXAMPLE_SYSTEM
   #include example.hdr

   proc Test_getexec
   ? "Full path specification of this program is", getexec()
   endproc

   proc main
   Test_getexec()
   endproc

See Also: curdir() curdrive() pathof()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson