Troubleshooting Code 80070035 - The network PATH cannot be found
Introduction to Code error 80070035
This error, code 80070035, occurs when you try to map a network drive using VBScript. My
suggestion is that you have an error in the UNC path of the share name.
The Symptoms you get with error 80070035
The script does not map the network drive as you had hoped, instead you get a Windows Script Host error message, see diagram.
The Cause of Error 80070035
One possibility is that you trying to map a network drive and you have
misspelled the share name. The source of the error is WSH.MapNetworkDrive
which gives us a big
clue where to look for the error.
My first guess is that there is a problem with the slashes on your server
or share name. \\ server\share (correct) \\ server \share\ (wrong). As with all WSH error messages, check the line number, count any blank or 'commented lines as you see the line with the error.
Double check the share names with the actual name in your script. Open a command prompt and type net view. Alternatively, it could be the server name which is incorrect in
which case you could launch the Run dialog box and type \\ server.
' MapNetworkDrive.vbs ' VBScript to map a network drive. ' Author Guy Thomas http://computerperformance.co.uk/ ' Version 2.2 -
April 24th 2005 ' -----------------------------------------------------------------' Option Explicit Dim objNetwork Dim strDriveLetter, strRemotePath strDriveLetter = "J:" strRemotePath
= "\\william\downloads\guyt\"
' Purpose of script to create a network object. (objNetwork) ' Then to apply the MapNetworkDrive method. Result J: drive Set objNetwork =
WScript.CreateObject("WScript.Network")
Solution it should have been \\william\downloads\guyt (No trailing \)
Try
a different solution, download SolarWinds ipMonitor
Here is my thinking,
ipMonitor will give you valuable data about your network and servers.
This extra information just may unlock the solution to your error code.
One more thing, sometimes when troubleshooting you go around in circles;
therefore if you try a different, but related approach, you may just crack the
problem.
Free Download
of SolarWinds ipMonitor
Their topics and material are ideal for getting you started with VBScript. The
videos are easy to follow and you can control the pace. Try their free demo material and then see if you want to buy the full package.
See more about VB Script Training CD.
The extra features you get in your eBook
include, more pages full of detailed examples. Also, ten 'how to...'
sections, with screen shots showing which menus to use. Go for Guy's
eBook - and get a printable version with copy enabled and no expiry date.