Vbscript list all PDF files in folder and subfolders

前端 未结 7 1664
甜味超标
甜味超标 2020-12-03 14:18

Well here is my code but I just can not filter the listing using the objFile.Extension i am sure it is some thing silly

Set objFSO = CreateObject(\"Scripting         


        
7条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-03 15:01

    May not help OP, but hopefully others may find this helpful:

    run

    %ComSpec% /c cd/d StartPath & dir/s/b *.pdf
    

    using shell object

    StdOut will contain all PDF files

提交回复
热议问题