I use my laptop outside of the office at work, however sometimes I need to come into the office to get access to shared network drives. We have a batch file for enabling the drives but when I run them I get an error.
Batch File -->
@echo off
echo Deleting network drives, please wait...
net use * /d /y
echo.
echo Mapping X Drive, please wait...
net use x: \\hq.autocab.com\public\files autocab2010 /USER:HQAUTOCAB\user.name
echo.
echo Mapping S Drive, please wait...
net use s: \\hq.autocab.com\public\software
echo.
echo Mapping M Drive, please wait
net use m: \\hq.autocab.com\public\mapping
echo.
echo Renaming mapped drives, please wait...
call "c:\scripts\rename.vbs"
:echo Renaming Drive Letters, please wait ...
:call "\\hq.autocab.com\public\scripts\remap.vbs"
:echo.
Error -->
System error 1231 has occured. The network location cannot be reached
then pop up-->
Windows Script Host
Script: c:\scripts\rename.vbs
Line: 4
Char: 1
Error: Object required: 'oShell.NameSpace(...)'
Code: 800A01A8
Source: Microsoft VBScript runtime error
I can ping the IP address of the server but cannot access it even when trying the \\192.168.2.111 etc from run command prompt.
Any ideas?
Colin Black.
Batch File -->
@echo off
echo Deleting network drives, please wait...
net use * /d /y
echo.
echo Mapping X Drive, please wait...
net use x: \\hq.autocab.com\public\files autocab2010 /USER:HQAUTOCAB\user.name
echo.
echo Mapping S Drive, please wait...
net use s: \\hq.autocab.com\public\software
echo.
echo Mapping M Drive, please wait
net use m: \\hq.autocab.com\public\mapping
echo.
echo Renaming mapped drives, please wait...
call "c:\scripts\rename.vbs"
:echo Renaming Drive Letters, please wait ...
:call "\\hq.autocab.com\public\scripts\remap.vbs"
:echo.
Error -->
System error 1231 has occured. The network location cannot be reached
then pop up-->
Windows Script Host
Script: c:\scripts\rename.vbs
Line: 4
Char: 1
Error: Object required: 'oShell.NameSpace(...)'
Code: 800A01A8
Source: Microsoft VBScript runtime error
I can ping the IP address of the server but cannot access it even when trying the \\192.168.2.111 etc from run command prompt.
Any ideas?
Colin Black.