Our end-user's mapped their own drive after login. Then, unmounted the network drive should be use net use /d U:/
in batch script but I want the network drive setting auto unmounted by schedule.
It may cause a problem: when user is uploading files to the network drive, the network drive will auto disconnect.
Example: While login, the batch executed to mount drive. After 5 minutes, the drive unmounted but the user is uploading files at this moment. This situation should not exist.
So, how to check in the batch script when user is transferring files to drive?