Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

VBS Scripting Error

$
0
0

Good afternoon,

I've been playing around with this script and cannot get it to run without "network path not found". I see the line that the message refers to, but I'm not seeing how it's an error given the variables set up top.

Can someone shed a little light on this for me please?

--------------------------------------------------------------------------------------

Option Explicit
Dim objNetwork, strRemotePath1, strRemotePath2, strRemotePath3
Dim strDriveLetter1, strDriveLetter2, strDriveLetter3

strDriveLetter1 = "X:" 
strDriveLetter2 = "Y:"
strDriveLetter3 = "Z:" 
strRemotePath1 = "\\largeformat1\working folder" 
strRemotePath2 = "\\largeformat2\working folder"
strRemotePath3 = "\\largeformat3\working folder" 

Set objNetwork = CreateObject("WScript.Network") 

objNetwork.MapNetworkDrive strDriveLetter1, strRemotePath1
objNetwork.MapNetworkDrive strDriveLetter2, strRemotePath2
objNetwork.MapNetworkDrive strDriveLetter3, strRemotePath3

Wscript.Quit



Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>