VB Script Documents.Open throwing 424 error
问题 So I have a vbs script: Function test2open( sSourceFile, sPDFFile ) Dim wApp ' As Word.Application Dim wDoc ' As Word.Document logStream.writeline "inside test2open" on error resume next Set wApp = CreateObject("Word.Application") logStream.writeline Err.Number Err.Clear Set wDoc = wApp.Documents.Open("c:\Windows\Temp\test.DOC") logStream.writeline Err.Number logStream.writeline Err.Description logStream.writeline Err.Source wApp.Quit WdDoNotSaveChanges Set wApp = Nothing End Function I'm