VBscript error input past end of file

后端 未结 1 1840
死守一世寂寞
死守一世寂寞 2020-12-11 03:37

I have 3 scripts wherein they all must be run in the right order repeatedly.

  1. 1st script - performs a process on a list of PCs (listed on a textfile input) depe
相关标签:
1条回答
  • 2020-12-11 03:50

    You get that error when you call ReadAll on an empty file. Check the AtEndOfStream property and read the content only if it's false:

    If Not file.AtEndOfStream Then fileText = fileText & file.ReadAll
    
    0 讨论(0)
提交回复
热议问题