Hi all,
I can't seem to find a simple command line solution for the issue.
I use 3 "endpoints" on my home network:
- a desktop
- a laptop
- a Networked Media Tank (media streamer)
I have mapped network drive on both desktop and laptop pointing to the other computer and the NMT.
Sometimes the mapped drives get to a disconnected/unavilable state (when running "net use" from command line) and can't be accessed from certain application or the command line.
The only way to "refresh" the connection - without removing it and re-establishing it - is either to open Windows Explorer and click on the drive (I also use Total Commander, which works also).
But I can't find a good command line solution where I give it the drive letter, and it makes sure it's connected.
What I'm looking for is a command line tool that will act as described above, for example:
refresh-smb-drive T:
will make sure T: is connected and active before returning control.
Hope this is simple enough for you excellent and bright guys.
Thanks in advance
Gal Szkolnik