> I would need to find out the directory where the current executable > resides to find some stuff whose location I know relative to the > executable location. The first argument ( argv[0] ) is the path to your executable. -- I.S.