Early on in Bruce Wayne’s career as Batman, during the events of Zero Year, Jim Gordon almost discovers the existence of the Batcave. Lucky for Bruce he had a device to drive the bats out of the cave, which discourage Jim in taking any further peeks at the cave.
From – Batman Vol. 2 #25