The calculated distance (air line) between Dobrovnik and Škofja Loka is approximately 103 miles respectively 166 kilometers.
By car or train, the actual journey to Škofja Loka is certainly longer, as only the direct route (as the crow flies) between Dobrovnik and Škofja Loka has been calculated here.
Air line (approximately)
166 kilometers
90 nautical miles