Executing a VBS file from an ASP page

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • p byers

    Executing a VBS file from an ASP page

    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)

  • Bob Barrows [MVP]

    #2
    Re: Executing a VBS file from an ASP page

    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"


    Comment

    • p byers

      #3
      Re: Executing a VBS file from an ASP page

      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 "permission s" 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"

      Comment

      • Bob Barrows [MVP]

        #4
        Re: Executing a VBS file from an ASP page

        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 "permission s" 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.


        Comment

        • p byers

          #5
          Re: Executing a VBS file from an ASP page

          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 "permission s" 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.

          Comment

          Working...