मैं एक संकलन त्रुटि मिलती है जब मैं इसे कहते हैं इस मुद्दे को किसी भी चार 1. पंक्ति 1 के साथ है विंडोज 7.VBScript अमान्य वर्ण 800A0408 संकलन त्रुटि
Option Explicit
Dim objNetwork, strRemotePath1, strRemotePath2, strRemotePath3
Dim strDriveLetter1, strDriveLetter2, strDriveLetter3, strUserName
Set objNetwork = CreateObject("WScript.Network")
strUserName = objNetwork.UserName
strDriveLetter1 = "H:"
strDriveLetter2 = "P:"
strDriveLetter3 = "S:"
strRemotePath1 = "\\test\public\users\" & strUserName & "\"
strRemotePath2 = "\\test\public\groups\"
strRemotePath3 = "\\test\scans\"
'Section which maps two drives, M: and P: and S:
objNetwork.MapNetworkDrive strDriveLetter1, strRemotePath1
objNetwork.MapNetworkDrive strDriveLetter2, strRemotePath2
objNetwork.MapNetworkDrive strDriveLetter3, strRemotePath3
'Extra code just to add a message box
WScript.Echo "Map drives " & strDriveLetter1 & " & " & strDriveLetter2 & " & " & strDriveLetter3
Wscript.Quit
में एक कमांड प्रॉम्प्ट से निम्न vbs कोड चलाने का प्रयास विचार?
आप बचाया है की तरह विस्तारित charater का उपयोग नहीं कर रहे हैं? –
वह था। धन्यवाद! – Mike