From: TDM on

"Bharat Suneja [MVP]" <bharatsuneja(a)no.spam.org> wrote in message
news:eWhRqSNCHHA.4832(a)TK2MSFTNGP06.phx.gbl...
> No, it's a simple VBScript running locally! I'm not sure I can nail this
> down to IE7, but it used to work for years!
>
> --
> Bharat Suneja
> MVP - Exchange
> www.zenprise.com
> NEW blog location:
> www.exchangepedia.com/blog
> ----------------------------------------------

Well I did an upgrade to IE and tested a number of command line
based scripts using FSO with no problems. You may need to post
your code to get more help ?

I also tested some scripts that use FSO via IE, they still work as
well.

I for one am relieved. You just never know with M$ what an update
can do to your life.

TDM


From: Franz aRTiglio on
Bharat Suneja [MVP] wrote:
> Just tried to run a simple script I had - the script works, but
> towards the end I use the Scripting.FileSystemObject to create a text
> file and write the results to it. I'm getting the following error:
> Microsoft VBScript runtime error: ActiveX component can't create
> object: 'Scripting.FileSystemObject'
>
> Is this because of some new IE7 security setting? I have IE7 and
> Office 2007 installed.

maybe some odd "antiscript" featured by the antivirus ?


From: Bharat Suneja [MVP] on
The code can't be any simpler:

'Output to a text file
strResult = "Some text here"
Set objFileSystem = CreateObject("Scripting.FileSystemObject")
Set objOutputFile = objFileSystem.CreateTextFile("C:\proxyaddresses.txt")
objOutputFile.Write strResult

Error:
C:\scripts\TestFileSystemObject.vbs(3, 1) Microsoft VBScript runtime error:
ActiveX component can't create object: 'Scripting.FileSystemObject'
--
Bharat Suneja
MVP - Exchange
www.zenprise.com
NEW blog location:
www.exchangepedia.com/blog
----------------------------------------------


"TDM" <rpuffd(a)gmail.com> wrote in message
news:%23OhBXeNCHHA.5012(a)TK2MSFTNGP06.phx.gbl...
>
> "Bharat Suneja [MVP]" <bharatsuneja(a)no.spam.org> wrote in message
> news:eWhRqSNCHHA.4832(a)TK2MSFTNGP06.phx.gbl...
>> No, it's a simple VBScript running locally! I'm not sure I can nail this
>> down to IE7, but it used to work for years!
>>
>> --
>> Bharat Suneja
>> MVP - Exchange
>> www.zenprise.com
>> NEW blog location:
>> www.exchangepedia.com/blog
>> ----------------------------------------------
>
> Well I did an upgrade to IE and tested a number of command line
> based scripts using FSO with no problems. You may need to post
> your code to get more help ?
>
> I also tested some scripts that use FSO via IE, they still work as
> well.
>
> I for one am relieved. You just never know with M$ what an update
> can do to your life.
>
> TDM
>


From: Bharat Suneja [MVP] on
Funny thing is it works on every other computer i've tried..... may not be
worth spending too much time on, but it'd be nice to find out.

--
Bharat Suneja
MVP - Exchange
www.zenprise.com
NEW blog location:
www.exchangepedia.com/blog
----------------------------------------------


"Bharat Suneja [MVP]" <bharatsuneja(a)no.spam.org> wrote in message
news:OdsR0KRCHHA.4428(a)TK2MSFTNGP04.phx.gbl...
> The code can't be any simpler:
>
> 'Output to a text file
> strResult = "Some text here"
> Set objFileSystem = CreateObject("Scripting.FileSystemObject")
> Set objOutputFile = objFileSystem.CreateTextFile("C:\proxyaddresses.txt")
> objOutputFile.Write strResult
>
> Error:
> C:\scripts\TestFileSystemObject.vbs(3, 1) Microsoft VBScript runtime
> error: ActiveX component can't create object: 'Scripting.FileSystemObject'
> --
> Bharat Suneja
> MVP - Exchange
> www.zenprise.com
> NEW blog location:
> www.exchangepedia.com/blog
> ----------------------------------------------
>
>
> "TDM" <rpuffd(a)gmail.com> wrote in message
> news:%23OhBXeNCHHA.5012(a)TK2MSFTNGP06.phx.gbl...
>>
>> "Bharat Suneja [MVP]" <bharatsuneja(a)no.spam.org> wrote in message
>> news:eWhRqSNCHHA.4832(a)TK2MSFTNGP06.phx.gbl...
>>> No, it's a simple VBScript running locally! I'm not sure I can nail this
>>> down to IE7, but it used to work for years!
>>>
>>> --
>>> Bharat Suneja
>>> MVP - Exchange
>>> www.zenprise.com
>>> NEW blog location:
>>> www.exchangepedia.com/blog
>>> ----------------------------------------------
>>
>> Well I did an upgrade to IE and tested a number of command line
>> based scripts using FSO with no problems. You may need to post
>> your code to get more help ?
>>
>> I also tested some scripts that use FSO via IE, they still work as
>> well.
>>
>> I for one am relieved. You just never know with M$ what an update
>> can do to your life.
>>
>> TDM
>>
>
>


From: Fosco on
"TDM"

I friend of mine have the same problem with IE 7

error at line 12.
(newf.WriteLine x)

x = TextFromHTML("http://www.televideo.rai.it/televideo/pub/solotesto.jsp?pagina=591")
Function TextFromHTML(URL)
set ie = createobject("internetexplorer.application")
ie.navigate URL
do until ie.readystate = 4 : wscript.sleep 10: loop
TextFromHTML = ie.document.body.innerText
ie.quit
End Function
filename = "Pag591.txt"
Set fso = CreateObject("Scripting.FileSystemObject")
Set newf = fso.createtextfile(filename)
newf.WriteLine x
newf.Close


--
Fosco