Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - start word, excel from script

Reply
 
Old 02-04-2009   #1 (permalink)
Lennart


 
 

start word, excel from script

Hi,

I'm using a script to start excel and load requested file. We are know
moving to Vista and it don't works any longer. Excel starts but the file
don't load.

This is the script I am using

****************************'
strPoA="\\sesowebdev05\magazinet\wwwroot\aktivitetsuppf\test\PoA.xls"

Sub launchApplication(value)
Dim objWshShell
'On Error Resume Next
' Create the Shell object and run the application
Set objWshShell = CreateObject("WScript.Shell")
objWshShell.Run value, 3
' Release the memory used by the Shell object
If IsObject(objWshShell) Then
Set objWshShell = Nothing
End If
End Sub
</SCRIPT>
<A onclick=launchApplication(strPoA) href="#">excelfile</A>
***************************************************

Does anyone have any clue about this issue? When I tried with textfile and
notepad, everything works fine on Vista.

Regards
Lennart

My System SpecsSystem Spec
Old 02-05-2009   #2 (permalink)
mr_unreliable


 
 

Re: start word, excel from script

Lennart wrote:
Quote:

> I'm using a script to start excel and load requested file. We are know
> moving to Vista and it don't works any longer. Excel starts but the file
> don't load.
>
hi Lennart,

Could that script possibly be hosted by IE?

If so, then you might be running into some sort of
a security problem. That is, if you allow an IE
script to launch an app, then there is all sorts of
mischief that the scripter could do to your system
-- even more so with excel, because an excel file
can contain a toxic bunch of vba code wrapped up
inside.

cheers, jw
____________________________________________________________

You got questions? WE GOT ANSWERS!!! ..(but, no guarantee
the answers will be applicable to the questions)

My System SpecsSystem Spec
Old 02-06-2009   #3 (permalink)
Lennart


 
 

Re: start word, excel from script

Ok, tanks. yes it is hosted by IE. Any suggestion on what security to change
to make it run again?

"mr_unreliable" wrote:
Quote:

> Lennart wrote:
Quote:

> > I'm using a script to start excel and load requested file. We are know
> > moving to Vista and it don't works any longer. Excel starts but the file
> > don't load.
> >
>
> hi Lennart,
>
> Could that script possibly be hosted by IE?
>
> If so, then you might be running into some sort of
> a security problem. That is, if you allow an IE
> script to launch an app, then there is all sorts of
> mischief that the scripter could do to your system
> -- even more so with excel, because an excel file
> can contain a toxic bunch of vba code wrapped up
> inside.
>
> cheers, jw
> ____________________________________________________________
>
> You got questions? WE GOT ANSWERS!!! ..(but, no guarantee
> the answers will be applicable to the questions)
>
>
My System SpecsSystem Spec
Old 02-06-2009   #4 (permalink)
Al Dunbar


 
 

Re: start word, excel from script


"Lennart" <Lennart@xxxxxx> wrote in message
news:6CF454C5-6806-47D5-8FA4-12396A93A573@xxxxxx
Quote:

> Ok, tanks. yes it is hosted by IE. Any suggestion on what security to
> change
> to make it run again?
I'd advise against reducing the security settings on your browser for this
purpose. Try renaming the file from whatever.htm to whatever.hta.

/Al
Quote:

> "mr_unreliable" wrote:
>
Quote:

>> Lennart wrote:
Quote:

>> > I'm using a script to start excel and load requested file. We are know
>> > moving to Vista and it don't works any longer. Excel starts but the
>> > file
>> > don't load.
>> >
>>
>> hi Lennart,
>>
>> Could that script possibly be hosted by IE?
>>
>> If so, then you might be running into some sort of
>> a security problem. That is, if you allow an IE
>> script to launch an app, then there is all sorts of
>> mischief that the scripter could do to your system
>> -- even more so with excel, because an excel file
>> can contain a toxic bunch of vba code wrapped up
>> inside.
>>
>> cheers, jw
>> ____________________________________________________________
>>
>> You got questions? WE GOT ANSWERS!!! ..(but, no guarantee
>> the answers will be applicable to the questions)
>>
>>

My System SpecsSystem Spec
Old 02-06-2009   #5 (permalink)
mr_unreliable


 
 

Re: start word, excel from script

Lennart wrote:
Quote:

> Ok, tanks. yes it is hosted by IE. Any suggestion on what security to change
> to make it run again?
>
Sorry Lennart, I am still using win98 and so I don't have
the benefit of all the security enhancements you have with
the newer systems.

Perhaps somebody who is more up-to-date will come along
and answer your question.

cheers, jw
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Vista and MS Word and Excel Vista General
need Word & Excel back! .NET General
Word&Excel:Add-Edit Toolbar&Buttons:Autocorrect to Excel Toolbar!! Vista General
Where is Word and Excel in my other accounts Vista General
Word and Excel Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46