Re: Reading file names and Searching for text
- From: Pegasus_fnl@xxxxxxxxx
- Date: Wed, 4 Mar 2009 05:06:25 -0800 (PST)
On Mar 3, 1:25 pm, "Pegasus \(MVP\)" <I....@xxxxxxxxxx> wrote:
"Codeblack" <Codebl...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:3E0AC0F3-4C83-4430-BFEC-4507A01B2A91@xxxxxxxxxxxxxxxx
Did the modification but getting the below error
"Microsoft VBScript runtime error: Invalid procedure call or argument".
The error is pointing at the line
Set objFile = objFSO.OpenTextFile(filename, ForReading)
Is it that the argument "filename" which we are passing is wrong?
If you don't have an IDE (an Interactive Development Environment, i.e. a
code editor that lets you step through the code and monitor your variables)
then you need to add your own diagnostics, e.g. like so:
wscript.echo "Filename=" & filename & "xxx"
Set objFile = objFSO.OpenTextFile(filename, ForReading)
You will probably see that the variable "filename" does not have a value
assigned to it.
It seems this thread is somewhat damaged. Depending on which forum you
use (Outlook Express, web Interface), some of your posts and some of
mine are missing. Here is what I wrote a few hours ago:
================
Sorry, your code fragment is too short to make any useful suggestions.
And
what do you mean with the comment "Changed his"? "His" what?
.
- References:
- Reading file names and Searching for text
- From: Codeblack
- Re: Reading file names and Searching for text
- From: Pegasus \(MVP\)
- Re: Reading file names and Searching for text
- From: Codeblack
- Re: Reading file names and Searching for text
- From: Codeblack
- Re: Reading file names and Searching for text
- From: Pegasus \(MVP\)
- Re: Reading file names and Searching for text
- From: Codeblack
- Re: Reading file names and Searching for text
- From: Pegasus \(MVP\)
- Reading file names and Searching for text
- Prev by Date: Setting cookies on InternetExplorer.Application
- Next by Date: Re: Setting cookies on InternetExplorer.Application
- Previous by thread: Re: Reading file names and Searching for text
- Next by thread: Re: Failing Object creation from vbs-script on Windows Server 2008
- Index(es):
Relevant Pages
|