Thanks to palbano, I was able to figure out how to get the directory path. However, I am still confused about calling the GetUserName() API function. I have always programmed on the UNIX operating system,and have just started programming with the Visual C++ software. Could someone help clarify how to actually use API functions? Will this function work with a simple DOS command line interface? What library do I need to include when calling this function? Any help would be much appreciated.