seems like there's a lot of extraneous stuff in there.
To keep it simple you could just make the $path absolute to "file.txt"
string $path = "Im_A_Path_To_Txt_File_inside_quotes";
launch -dir $path;
The problem is probably that "file.txt" doesn't exist in your user preferred directory for Maya 2013.