Create a procedure that returns the specific information of a selected path