Overclock.net › Forums › Software, Programming and Coding › Networking & Security › Schedule to reconnect network drives every 5minutes
New Posts  All Forums:Forum Nav:

Schedule to reconnect network drives every 5minutes

post #1 of 5
Thread Starter 
Hi,

I'm looking for some way to automatically reconnect my mapped network drives every 5 minutes. I have a server in the house which is not always switched on to save energy costs. I hope there is a way to implement this some sort of way by script/schedule or something to tell Windows to reconnect my mapped network drives in the background.

Thanks!
DavidE-PC
(14 items)
 
  
CPUMotherboardGraphicsRAM
AMD Phenom II X6 1055T 3.5Ghz Asus M4A88T-V EVO USB3 XFX ATI Radeon HD 4890 1GB HD4890 GDDR5 PCI-E Corsair Vengeance 2x4GB (8GB) 1600MHz 9-9-9-24 ... 
Hard DriveOptical DriveOSMonitor
WD Caviar - 7,200RPM 16MB Cache - SATA 2 - 320GB Sony Optiarc DVD-RW SATA Windows 7 Ultimate 64-bit SP1 LG Flatron E2260 
KeyboardPowerCaseMouse
Microsoft Sidewinder x6 Arctic Power 700W Antec 902 Microsoft Wireless Laser Desktop 6000 v3 
Mouse PadAudio
N/A Panasonic SC-PT870 1000w Home Cinema 
  hide details  
Reply
DavidE-PC
(14 items)
 
  
CPUMotherboardGraphicsRAM
AMD Phenom II X6 1055T 3.5Ghz Asus M4A88T-V EVO USB3 XFX ATI Radeon HD 4890 1GB HD4890 GDDR5 PCI-E Corsair Vengeance 2x4GB (8GB) 1600MHz 9-9-9-24 ... 
Hard DriveOptical DriveOSMonitor
WD Caviar - 7,200RPM 16MB Cache - SATA 2 - 320GB Sony Optiarc DVD-RW SATA Windows 7 Ultimate 64-bit SP1 LG Flatron E2260 
KeyboardPowerCaseMouse
Microsoft Sidewinder x6 Arctic Power 700W Antec 902 Microsoft Wireless Laser Desktop 6000 v3 
Mouse PadAudio
N/A Panasonic SC-PT870 1000w Home Cinema 
  hide details  
Reply
post #2 of 5
You could create a scheduled task to run a net use command every five minutes.
    
CPUMotherboardGraphicsRAM
Xeon E5645 Asus Rampage II Gene eVGA GTX460 SSC 3x4GB Corsair Dominator PC3-12800 
Hard DriveHard DriveHard DriveOS
Crucial C300 64GB Seagate Momentus XT 750 Western Digital GP 2TB EARS Windows 7 Premium 
MonitorKeyboardPowerCase
Asus VE278Q DSI SMK-88 Seasonic X-660 Lian Li U6B 2011 SE 
MouseMouse Pad
Logitech G500 KAI.g3 HIEN - HARD 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
Xeon E5645 Asus Rampage II Gene eVGA GTX460 SSC 3x4GB Corsair Dominator PC3-12800 
Hard DriveHard DriveHard DriveOS
Crucial C300 64GB Seagate Momentus XT 750 Western Digital GP 2TB EARS Windows 7 Premium 
MonitorKeyboardPowerCase
Asus VE278Q DSI SMK-88 Seasonic X-660 Lian Li U6B 2011 SE 
MouseMouse Pad
Logitech G500 KAI.g3 HIEN - HARD 
  hide details  
Reply
post #3 of 5
Thread Starter 
So that would basically involve disconnecting and connecting?

net use T: /delete
net use T: \\\\Server-PC\\Movies


Edited by davidelliott- - 11/3/11 at 3:48pm
DavidE-PC
(14 items)
 
  
CPUMotherboardGraphicsRAM
AMD Phenom II X6 1055T 3.5Ghz Asus M4A88T-V EVO USB3 XFX ATI Radeon HD 4890 1GB HD4890 GDDR5 PCI-E Corsair Vengeance 2x4GB (8GB) 1600MHz 9-9-9-24 ... 
Hard DriveOptical DriveOSMonitor
WD Caviar - 7,200RPM 16MB Cache - SATA 2 - 320GB Sony Optiarc DVD-RW SATA Windows 7 Ultimate 64-bit SP1 LG Flatron E2260 
KeyboardPowerCaseMouse
Microsoft Sidewinder x6 Arctic Power 700W Antec 902 Microsoft Wireless Laser Desktop 6000 v3 
Mouse PadAudio
N/A Panasonic SC-PT870 1000w Home Cinema 
  hide details  
Reply
DavidE-PC
(14 items)
 
  
CPUMotherboardGraphicsRAM
AMD Phenom II X6 1055T 3.5Ghz Asus M4A88T-V EVO USB3 XFX ATI Radeon HD 4890 1GB HD4890 GDDR5 PCI-E Corsair Vengeance 2x4GB (8GB) 1600MHz 9-9-9-24 ... 
Hard DriveOptical DriveOSMonitor
WD Caviar - 7,200RPM 16MB Cache - SATA 2 - 320GB Sony Optiarc DVD-RW SATA Windows 7 Ultimate 64-bit SP1 LG Flatron E2260 
KeyboardPowerCaseMouse
Microsoft Sidewinder x6 Arctic Power 700W Antec 902 Microsoft Wireless Laser Desktop 6000 v3 
Mouse PadAudio
N/A Panasonic SC-PT870 1000w Home Cinema 
  hide details  
Reply
post #4 of 5
Quote:
Originally Posted by davidelliott- View Post
So that would basically involve disconnecting and connecting?

net use T: /delete
net use T: \\\\Server-PC\\Movies
Yeah, the script will fail if any files are being utilized on the volume before it would drop it.
    
CPUMotherboardGraphicsRAM
Xeon E5645 Asus Rampage II Gene eVGA GTX460 SSC 3x4GB Corsair Dominator PC3-12800 
Hard DriveHard DriveHard DriveOS
Crucial C300 64GB Seagate Momentus XT 750 Western Digital GP 2TB EARS Windows 7 Premium 
MonitorKeyboardPowerCase
Asus VE278Q DSI SMK-88 Seasonic X-660 Lian Li U6B 2011 SE 
MouseMouse Pad
Logitech G500 KAI.g3 HIEN - HARD 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
Xeon E5645 Asus Rampage II Gene eVGA GTX460 SSC 3x4GB Corsair Dominator PC3-12800 
Hard DriveHard DriveHard DriveOS
Crucial C300 64GB Seagate Momentus XT 750 Western Digital GP 2TB EARS Windows 7 Premium 
MonitorKeyboardPowerCase
Asus VE278Q DSI SMK-88 Seasonic X-660 Lian Li U6B 2011 SE 
MouseMouse Pad
Logitech G500 KAI.g3 HIEN - HARD 
  hide details  
Reply
post #5 of 5
Thread Starter 
Quote:
Originally Posted by RonindeBeatrice View Post
Yeah, the script will fail if any files are being utilized on the volume before it would drop it.
It wants me to confirm by telling it to either drop or not drop the connection of the network drives. I want it to automatically say no if the drive is currently in use.

Is it OK to continue disconnecting and force them closed? (Y/N) [N]:

Is what it exactly said, is there a way i can modify the script so that it automatically sets this to 'N'?
DavidE-PC
(14 items)
 
  
CPUMotherboardGraphicsRAM
AMD Phenom II X6 1055T 3.5Ghz Asus M4A88T-V EVO USB3 XFX ATI Radeon HD 4890 1GB HD4890 GDDR5 PCI-E Corsair Vengeance 2x4GB (8GB) 1600MHz 9-9-9-24 ... 
Hard DriveOptical DriveOSMonitor
WD Caviar - 7,200RPM 16MB Cache - SATA 2 - 320GB Sony Optiarc DVD-RW SATA Windows 7 Ultimate 64-bit SP1 LG Flatron E2260 
KeyboardPowerCaseMouse
Microsoft Sidewinder x6 Arctic Power 700W Antec 902 Microsoft Wireless Laser Desktop 6000 v3 
Mouse PadAudio
N/A Panasonic SC-PT870 1000w Home Cinema 
  hide details  
Reply
DavidE-PC
(14 items)
 
  
CPUMotherboardGraphicsRAM
AMD Phenom II X6 1055T 3.5Ghz Asus M4A88T-V EVO USB3 XFX ATI Radeon HD 4890 1GB HD4890 GDDR5 PCI-E Corsair Vengeance 2x4GB (8GB) 1600MHz 9-9-9-24 ... 
Hard DriveOptical DriveOSMonitor
WD Caviar - 7,200RPM 16MB Cache - SATA 2 - 320GB Sony Optiarc DVD-RW SATA Windows 7 Ultimate 64-bit SP1 LG Flatron E2260 
KeyboardPowerCaseMouse
Microsoft Sidewinder x6 Arctic Power 700W Antec 902 Microsoft Wireless Laser Desktop 6000 v3 
Mouse PadAudio
N/A Panasonic SC-PT870 1000w Home Cinema 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Networking & Security
Overclock.net › Forums › Software, Programming and Coding › Networking & Security › Schedule to reconnect network drives every 5minutes