📜  下载并打开 pdf vbscript - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:59.610000             🧑  作者: Mango

代码示例1
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objShell = CreateObject("WScript.Shell")

pdfPath = WScript.Arguments.Item(1)

Set MyFolder = objFSO.GetFolder(pdfPath)
For Each MyFile in MyFolder.Files
      If Right(MyFile.Path,4) = ".pdf" Then
           objShell.Run MyFile.Path
      End If
Next