Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FUNCky - <b>name:</b> <b>program() - get the name of the program that is running</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     program() - get the name of the program that is running
  Usage:    <string> = program()
  Params:   none
  Returns:  a string equal to the name of the program that is running

 ---------------------------------- Example ---------------------------------

                 if ! ("EDIT.EXE" $ program())
                      ? "Program has been renamed"
                      quit
                 else
                      fcopy("EDIT.EXE","A:EDIT.EXE")
                 endif

  Note:     DOS 2.xx returns a program name of "C" always. The
            program name will include the drive and path that
            the currently executing program was run from.


See Also: command() argv() argc()

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