Good Morning
I used to be able to Execute '.VBS' files from ASP pages.

I think the facility stopped in IIS6
Security feature I guess - any work arounds available ??

Thanks
Pete (Northolt UK)

Re: Executing a VBS file from an ASP page by Bob

Bob
Tue Mar 11 05:24:38 CDT 2008

p byers wrote:
> Good Morning
> I used to be able to Execute '.VBS' files from ASP pages.
>
> I think the facility stopped in IIS6
> Security feature I guess - any work arounds available ??
>
Why not use a server-side include (SSI)?
That said, I was unaware that IIS6 stopped allowing this. What are your
symptoms when you attempt it?

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"



Re: Executing a VBS file from an ASP page by p

p
Tue Mar 11 10:14:49 CDT 2008

Thanks for your reply.

The reason I have not used SSI is because I have to VBS files that
loop continuously all the time the server is "UP"


They are in the list of StartUp files to be Executed.


We found that ASP would not start them several years ago - so we got
used to - using Remote Desktop login to start them when the failed (or
failed to start at a 're-boot')


Recently we have changed our Server - we are running them side by side
at the momement.




I tried the old ASP file on the old server to find the Error Message -
suprise, surprise !! it worked perfectly (why it does now, I dont know -
we tried for hours and hours several years ago but eventually gave up)




I tried it on the new server - it gave the following Error

_____________________________________________________________
Microsoft VBScript runtime error '800a0046'

Permission denied

_____________________________________________________________


Now I know it is a "permissions" problem, I will go through comparing
the security settings on old and new servers.


Hopefully, I will crack it !!!

Thank you

Pete (Northolt UK)



"Bob Barrows [MVP]" wrote:

> p byers wrote:
> > Good Morning
> > I used to be able to Execute '.VBS' files from ASP pages.
> >
> > I think the facility stopped in IIS6
> > Security feature I guess - any work arounds available ??
> >
> Why not use a server-side include (SSI)?
> That said, I was unaware that IIS6 stopped allowing this. What are your
> symptoms when you attempt it?
>
> --
> Microsoft MVP - ASP/ASP.NET
> Please reply to the newsgroup. This email account is my spam trap so I
> don't check it very often. If you must reply off-line, then remove the
> "NO SPAM"


Re: Executing a VBS file from an ASP page by Bob

Bob
Tue Mar 11 12:01:09 CDT 2008

Why not use AT to schedule the file to be run by the operating system?
Does it need to run within the IIS context?
See http://www.aspfaq.com/show.asp?id=2143
p byers wrote:
> Thanks for your reply.
>
> The reason I have not used SSI is because I have to VBS files that
> loop continuously all the time the server is "UP"
>
>
> They are in the list of StartUp files to be Executed.
>
>
> We found that ASP would not start them several years ago - so we got
> used to - using Remote Desktop login to start them when the failed (or
> failed to start at a 're-boot')
>
>
> Recently we have changed our Server - we are running them side by side
> at the momement.
>
>
>
>
> I tried the old ASP file on the old server to find the Error Message -
> suprise, surprise !! it worked perfectly (why it does now, I dont
> know - we tried for hours and hours several years ago but eventually
> gave up)
>
>
>
>
> I tried it on the new server - it gave the following Error
>
> _____________________________________________________________
> Microsoft VBScript runtime error '800a0046'
>
> Permission denied
>
> _____________________________________________________________
>
>
> Now I know it is a "permissions" problem, I will go through comparing
> the security settings on old and new servers.
>
>
> Hopefully, I will crack it !!!
>
> Thank you
>
> Pete (Northolt UK)
>
>
>
> "Bob Barrows [MVP]" wrote:
>
>> p byers wrote:
>>> Good Morning
>>> I used to be able to Execute '.VBS' files from ASP pages.
>>>
>>> I think the facility stopped in IIS6
>>> Security feature I guess - any work arounds available ??
>>>
>> Why not use a server-side include (SSI)?
>> That said, I was unaware that IIS6 stopped allowing this. What are
>> your symptoms when you attempt it?
>>
>> --
>> Microsoft MVP - ASP/ASP.NET
>> Please reply to the newsgroup. This email account is my spam trap so
>> I don't check it very often. If you must reply off-line, then remove
>> the "NO SPAM"

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.



Re: Executing a VBS file from an ASP page by p

p
Wed Mar 12 01:40:15 CDT 2008

Thanks Bob
The 'AT' suggestion could achieve what I need to.

It does not need to run in IIS context

Pete(Northolt UK)

"Bob Barrows [MVP]" wrote:

> Why not use AT to schedule the file to be run by the operating system?
> Does it need to run within the IIS context?
> See http://www.aspfaq.com/show.asp?id=2143
> p byers wrote:
> > Thanks for your reply.
> >
> > The reason I have not used SSI is because I have to VBS files that
> > loop continuously all the time the server is "UP"
> >
> >
> > They are in the list of StartUp files to be Executed.
> >
> >
> > We found that ASP would not start them several years ago - so we got
> > used to - using Remote Desktop login to start them when the failed (or
> > failed to start at a 're-boot')
> >
> >
> > Recently we have changed our Server - we are running them side by side
> > at the momement.
> >
> >
> >
> >
> > I tried the old ASP file on the old server to find the Error Message -
> > suprise, surprise !! it worked perfectly (why it does now, I dont
> > know - we tried for hours and hours several years ago but eventually
> > gave up)
> >
> >
> >
> >
> > I tried it on the new server - it gave the following Error
> >
> > _____________________________________________________________
> > Microsoft VBScript runtime error '800a0046'
> >
> > Permission denied
> >
> > _____________________________________________________________
> >
> >
> > Now I know it is a "permissions" problem, I will go through comparing
> > the security settings on old and new servers.
> >
> >
> > Hopefully, I will crack it !!!
> >
> > Thank you
> >
> > Pete (Northolt UK)
> >
> >
> >
> > "Bob Barrows [MVP]" wrote:
> >
> >> p byers wrote:
> >>> Good Morning
> >>> I used to be able to Execute '.VBS' files from ASP pages.
> >>>
> >>> I think the facility stopped in IIS6
> >>> Security feature I guess - any work arounds available ??
> >>>
> >> Why not use a server-side include (SSI)?
> >> That said, I was unaware that IIS6 stopped allowing this. What are
> >> your symptoms when you attempt it?
> >>
> >> --
> >> Microsoft MVP - ASP/ASP.NET
> >> Please reply to the newsgroup. This email account is my spam trap so
> >> I don't check it very often. If you must reply off-line, then remove
> >> the "NO SPAM"
>
> --
> Microsoft MVP -- ASP/ASP.NET
> Please reply to the newsgroup. The email account listed in my From
> header is my spam trap, so I don't check it very often. You will get a
> quicker response by posting to the newsgroup.