I have a bat script which runs a service from given location (taken as input). But the issue is that service is unable to run from mapped drive. Is there a way to check that input drive is not a drive mapped to a network location?
I cannot follow the solution posted here as this suggests mapping a drive in different way might solve the issue. But in my case I just want to show error message if input drive (location) is a mapped drive.