Getting list of files in current directory

前端 未结 1 390
轮回少年
轮回少年 2021-01-20 02:52

I\'m trying to get a script to read the contents of the directory where the script file is located, then identify a couple of specific files based on partial names and zip t

相关标签:
1条回答
  • 2021-01-20 03:37

    Your

    objFolder = FSO.GetParentFolderName(WScript.ScriptFullName)
    

    assigns a Path (String) to objFolder (type prefix fraud detected!). Use

    Set objFolder = FSO.GetFolder(FSO.GetParentFolderName(WScript.ScriptFullName))
    

    instead.

    0 讨论(0)
提交回复
热议问题