Hi,
I have a similar setup with the NAS box and home PC's and with the work laptop which is on a Domain.
To get the work laptop to connect I have 2 shortcuts on the quick launch menu that run 2 simple batch files.
This connects:
@echo off cls echo. echo ***************************************************** echo * This batch file maps the drive letters R, S, T & U * echo * to the NASLite-2 NAS Drives 0, 1, 2 & 3 * echo ***************************************************** echo. echo Press any key to continue or Ctrl+C to cancel echo. pause > nul Rem These are the commands to connect the network drives. net use R: \\NASLite-2\Disk-0 /USER:NASUser net use S: \\NASLite-2\Disk-1 /USER:NASUser net use T: \\NASLite-2\Disk-2 /USER:NASUser net use U: \\NASLite-2\Disk-3 /USER:NASUser echo. echo Press any key to continue echo. pause > nul
When finished I run this batch file to disconnect:
@echo off cls echo. echo ************************************************** echo * This batch file disconnects the NASLite-2 mapped drives * echo ************************************************** echo. echo Press any key to continue or Ctrl+C to cancel echo. pause > nul Rem This is the command to disconnect the mapped network drives. net use R: /delete net use S: /delete net use T: /delete net use U: /delete echo. echo Press any key to continue echo. pause > nul
You may need to change the drive letters used and the disk references. I have 4 HDD's in my NAS. Hope this helps.
Geoff
Last edited by browngc on Wed Apr 15, 2009 8:36 am, edited 1 time in total.
|