or checkout the fileBrowser.mel file located in "\scripts\others" under you maya installation directory.
basically when calling fileBrowser you give it a callBack function that it will evaluate when you press the ok button. it also adds the arguments of filename and filetype to that function. so define that callBack function to do wathever you like with the filename.