We had this issue at work. Users would close their login script boxes which were bat files set to map each user to their shared network drives. Then they would complain that they couldn’t get to their shared drives and I’d have to tell them it was because they closed their login script too quick. It only took me a week and a half before I went looking for a solution. I’ll have to look Monday when I get back to work but there’s a little library that you put on (in our case the login server) but wherever you’re running the batch file and you call the command through the library and you can have it run invisibly.