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
WScript.Echo temp
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)