VBscript代码错误800A0005-无效的过程调用或参数 [英] VBscript Code Error 800A0005 - Invalid procedure call or argument
本文介绍了VBscript代码错误800A0005-无效的过程调用或参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.CreateTextFile("C:\output.txt", True)
Dim temp, key
temp = "mon pass"
key = "qswx"
temp = Encrypt(temp,key)
Function encrypt(Str, key)
..........
......
Next
encrypt = Newstr
End Function
objFile.WriteLine temp 'Error 800A0005 - Invalid procedure call or argument
当我我们
When i us
WScript.Echo temp
完美工作
如何保存结果?
work perfectly
what to do to save the result?
推荐答案
请参见 ^ ]
这是因为您已将值加密为.WriteLine无法写入文件的内容.
See http://stackoverflow.com/questions/17094281/getting-invalid-procedure-call-or-argument-in-vbscript[^]
This is because you have encrypted the value into something that .WriteLine can''t write to the file.
这篇关于VBscript代码错误800A0005-无效的过程调用或参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文