yeah exactly...call a dos command from C++ program(like "dir" to giv the directories)....use the dir command in C++ to obtain the directory as we get in cmd!!..its bit crazy....still any chance??...thanx for the response!