代码错误800A0409 - 未终止的字符串常量(日文Windows)

时间:2016-09-18 12:28:22

标签: vbscript

这对我来说很奇怪。在发布之前,我确实研究了这个错误代码,根据许多文章,这似乎是一个相对直接的问题。该问题通常与字符串中缺少双引号或字符串跨越多行有关。

但是,就我而言,上述情况似乎都不是问题的原因。奇怪的是我的代码在英文Windows操作系统中工作正常但我只在日文版的windows中遇到此错误。

enter image description here

错误指向以下代码行:

WScript.Echo "PFXファイル " & pfxFileName & " は存在しません。"

为什么会出现这种情况只会出现在日文版的Windows中?

以下是周围代码的块,以防它提供任何进一步的线索:

' check if pfx file exists
Dim fso
Set fso = CreateObject("Scripting.FileSystemObject")
pfxFileExists = 0
Do
  If fso.FileExists(pfxFilePath & pfxFileName) Then
    ' it exists, continue
    pfxFileExists = 1 
  Else
    ' The PFX file does not exist.
    WScript.Echo "PFXファイル " & pfxFileName & " は存在しません。"
  End If
Loop Until pfxFileExists = 1

0 个答案:

没有答案