내 VB 스크립트에 오류가 있습니다.

내 VB 스크립트에 오류가 있습니다.

프로그램을 설치하기 위해 GPO에 로그온 스크립트를 추가하고 있습니다. 누구든지 이 스크립트의 문제점을 볼 수 있습니까? PC를 부팅하면 리소스를 찾을 수 있다는 메시지가 뜹니다.

Const EVENT_SUCCESS = 0

On Error Resume Next

strPlugin = "HKLM\Software\BottomlineTechnologies\TransformInstallationSystem\CurrentInstallPath"
strApp = "cmd /c \\int.company.com\sysvol\int.company.com\scripts\Apps\setup.exe installpath selectall autoexit hide"

Set WSHShell = CreateObject("WScript.Shell")
sReg = WSHShell.RegRead(strPlugin)

If Err.Number <> 0 Then
 Err.Clear
 'Plugin not yet installed
 WSHShell.Run strApp, 0, true
 WSHShell.LogEvent EVENT_SUCCESS, "InstalledPlugin"
Else
 WSHShell.LogEvent EVENT_SUCCESS, "Plugin already installed."
End If


WScript.Quit

답변1

언뜻 보면 UNC 경로는 두 개의 백슬래시로 시작해야 합니다. 즉, 다음과 같습니다.

strApp = "cmd /c \\int.company.com\sysvol\...

위에서는 백슬래시가 하나만 사용된 것으로 보입니다.

관련 정보