PRODUCT : C++ NUMBER : 800 VERSION : All OS : PC DOS DATE : October 19, 1993 PAGE : 1/1 TITLE : Don't Overlook argv[0]! The declaration int main (int argc, char *argv[]) { is a familiar sight. What you may not know is that argv[0] is a small treasure. It is the name of the program that is running. It also contains the path of the program. For instance, if it is necessary to know the path from which an exceuting program was invoked, use the fnsplit() function to extract the path from argv[0]. You can also find out if the program has been renamed after it was compiled. DISCLAIMER: You have the right to use this technical information subject to the terms of the No-Nonsense License Statement that you received with the Borland product to which this information pertains.