Hello,
Is there a VBA command/code to close a command window? I have a line that maps a network drive then performs some functions and disconnects the mapped drive (I tried coding via UNC path but that bombs).
Shell "net use V: \\ce_laptop2\sidewalks /y"
A temporary command window opens and drive is connected. It works fine as long as the laptop is connected. However, if it’s not connected, the command window does not close. I can manually close it but would like a way to automatically do so.
Any suggestions?
Thanks,
SKK
Is there a VBA command/code to close a command window? I have a line that maps a network drive then performs some functions and disconnects the mapped drive (I tried coding via UNC path but that bombs).
Shell "net use V: \\ce_laptop2\sidewalks /y"
A temporary command window opens and drive is connected. It works fine as long as the laptop is connected. However, if it’s not connected, the command window does not close. I can manually close it but would like a way to automatically do so.
Any suggestions?
Thanks,
SKK