I'm having an vbs file and when i'm trying to execute outside the QTP it gives an error message as
Microsoft VBScript runtime error '800a0005'
Line : 35
Invalid procedure call or argument.
Line # 35 is
Set shortfile = fso.opentextfile(strShortPath, ForWriting, True)
I've searched through forum and also went through some posts and tried the resolution mentioned in the post but no luck.
Please find attached vbs file.
paste the entire code for better analysis.
- One thing you can't recycle is wasted time -
I've attached the zip file with the post above.
I got the answer. I had to define the constants as follows
Const ForReading = 1, ForWriting = 2, ForAppending = 8