I need to check if a drive (Z:) is in use (e.g. in use by an application, opened).
My Batch File looks like this:
Mount Z:
wait 15 minutes
check if drive Z: is in use
IF NOT: unmount Z:
ELSE: wait 15 minutes
repeat..
Is there any Command for this? Thanks!