An easy method to keep network connections without any interruption is to create a scheduled task that calls a script that maps a certain folder every 5 minutes.
1. Create a .bat file for example: netrefresh.bat contained
1 |
net use x: \\SERVER\files |
2. Create a scheduled task using the following in command prompt
1 |
SCHTASKS /Create /ST 12:00 /ET 23:59 /TN NETREFRESH /SC minute /MO 5 /TR "c:\netrefresh.bat" |
3. Check if task created
1 |
Taskschd.msc |