How can I get the TextStream Object to write on Fat32?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Christian Blackburn

    How can I get the TextStream Object to write on Fat32?

    Hi Gang,
    I have so far been unable to get the TextStream Object to write on Fat32.
    I'm using Windows 2000 Pro Sp4. Scripts have write access and I even tried
    giving IUSR user level writes and still when I tried loading the ASP page it
    just hangs trying to create the file :(.

    <%
    Function WriteText(sPath , sText)
    Dim fso, TextFile

    Set fso = CreateObject("S cripting.FileSy stemObject")

    Set TextFile = fso.CreateTextF ile(sPath, True)

    TextFile.Write sText

    TextFile.Close

    End Function


    WriteText "Test.htm", "Testing, Testing, 1, 2, 3"
    %>


    Can anyone tell me what I'm doing wrong? This must be a security issue, but
    how and where?
    Thanks,
    Christian Blackburn


  • Ray at

    #2
    Re: How can I get the TextStream Object to write on Fat32?

    Make sure it's not your AV software.


    Ray at work

    "Christian Blackburn" <Christian_Blac kburn@Damn.Spam @Hotmail.com> wrote in
    message news:ui9qcuZfEH A.3632@TK2MSFTN GP11.phx.gbl...[color=blue]
    > Hi Gang,
    > I have so far been unable to get the TextStream Object to write on Fat32.
    > I'm using Windows 2000 Pro Sp4. Scripts have write access and I even
    > tried
    > giving IUSR user level writes and still when I tried loading the ASP page
    > it
    > just hangs trying to create the file :(.
    >
    > <%
    > Function WriteText(sPath , sText)
    > Dim fso, TextFile
    >
    > Set fso = CreateObject("S cripting.FileSy stemObject")
    >
    > Set TextFile = fso.CreateTextF ile(sPath, True)
    >
    > TextFile.Write sText
    >
    > TextFile.Close
    >
    > End Function
    >
    >
    > WriteText "Test.htm", "Testing, Testing, 1, 2, 3"
    > %>
    >
    >
    > Can anyone tell me what I'm doing wrong? This must be a security issue,
    > but
    > how and where?
    > Thanks,
    > Christian Blackburn
    >
    >[/color]


    Comment

    • Christian Blackburn

      #3
      Re: How can I get the TextStream Object to write on Fat32?

      Hi Ray,
      When I first saw your answer I laughed to myself and thought this guy is
      nuts, surely Norton AV wouldn't do that. My AV doesn't interfere with that
      and then I remembered all those Windows Installer installations that were
      temporarily blocked :). Thank you ever so much for your help. That wasted
      more time than I care to tell :).
      Cheers,
      Christian Blackburn


      "Ray at <%=sLocation% > [MVP]" <myfirstname at lane34 dot com> wrote in
      message news:O8KRKEjfEH A.396@TK2MSFTNG P12.phx.gbl...[color=blue]
      > Make sure it's not your AV software.
      > http://www.aspfaq.com/show.asp?id=2180
      >
      > Ray at work
      >
      > "Christian Blackburn" <Christian_Blac kburn@Damn.Spam @Hotmail.com> wrote in
      > message news:ui9qcuZfEH A.3632@TK2MSFTN GP11.phx.gbl...[color=green]
      > > Hi Gang,
      > > I have so far been unable to get the TextStream Object to write on[/color][/color]
      Fat32.[color=blue][color=green]
      > > I'm using Windows 2000 Pro Sp4. Scripts have write access and I even
      > > tried
      > > giving IUSR user level writes and still when I tried loading the ASP[/color][/color]
      page[color=blue][color=green]
      > > it
      > > just hangs trying to create the file :(.
      > >
      > > <%
      > > Function WriteText(sPath , sText)
      > > Dim fso, TextFile
      > >
      > > Set fso = CreateObject("S cripting.FileSy stemObject")
      > >
      > > Set TextFile = fso.CreateTextF ile(sPath, True)
      > >
      > > TextFile.Write sText
      > >
      > > TextFile.Close
      > >
      > > End Function
      > >
      > >
      > > WriteText "Test.htm", "Testing, Testing, 1, 2, 3"
      > > %>
      > >
      > >
      > > Can anyone tell me what I'm doing wrong? This must be a security issue,
      > > but
      > > how and where?
      > > Thanks,
      > > Christian Blackburn
      > >
      > >[/color]
      >
      >[/color]


      Comment

      • Christian Blackburn

        #4
        Re: How can I get the TextStream Object to write on Fat32?

        Hi Ray,
        You know the weird part about the error is that with the installers I would
        visibly be presented with the approve or disapprove scripting activity
        dialog. However, with an ASP page I got nothing, but an hour glass in my
        web browser. I think that's a serious problem with NAV 2003.
        Cheers,
        Christian Blackburn


        "Ray at <%=sLocation% > [MVP]" <myfirstname at lane34 dot com> wrote in
        message news:O8KRKEjfEH A.396@TK2MSFTNG P12.phx.gbl...[color=blue]
        > Make sure it's not your AV software.
        > http://www.aspfaq.com/show.asp?id=2180
        >
        > Ray at work
        >
        > "Christian Blackburn" <Christian_Blac kburn@Damn.Spam @Hotmail.com> wrote in
        > message news:ui9qcuZfEH A.3632@TK2MSFTN GP11.phx.gbl...[color=green]
        > > Hi Gang,
        > > I have so far been unable to get the TextStream Object to write on[/color][/color]
        Fat32.[color=blue][color=green]
        > > I'm using Windows 2000 Pro Sp4. Scripts have write access and I even
        > > tried
        > > giving IUSR user level writes and still when I tried loading the ASP[/color][/color]
        page[color=blue][color=green]
        > > it
        > > just hangs trying to create the file :(.
        > >
        > > <%
        > > Function WriteText(sPath , sText)
        > > Dim fso, TextFile
        > >
        > > Set fso = CreateObject("S cripting.FileSy stemObject")
        > >
        > > Set TextFile = fso.CreateTextF ile(sPath, True)
        > >
        > > TextFile.Write sText
        > >
        > > TextFile.Close
        > >
        > > End Function
        > >
        > >
        > > WriteText "Test.htm", "Testing, Testing, 1, 2, 3"
        > > %>
        > >
        > >
        > > Can anyone tell me what I'm doing wrong? This must be a security issue,
        > > but
        > > how and where?
        > > Thanks,
        > > Christian Blackburn
        > >
        > >[/color]
        >
        >[/color]


        Comment

        • Ray at

          #5
          Re: How can I get the TextStream Object to write on Fat32?

          Well, if you think about it, the ASP page is running on the server under the
          IUSR's context, so if IUSR were a physical being logged on, perhaps there
          would be a dialog you'd see.

          Ray at work

          "Christian Blackburn" <Christian_Blac kburn@Damn.Spam @Hotmail.com> wrote in
          message news:epVpwPpfEH A.3412@TK2MSFTN GP11.phx.gbl...[color=blue]
          > Hi Ray,
          > You know the weird part about the error is that with the installers I
          > would
          > visibly be presented with the approve or disapprove scripting activity
          > dialog. However, with an ASP page I got nothing, but an hour glass in my
          > web browser. I think that's a serious problem with NAV 2003.
          > Cheers,
          > Christian Blackburn
          >
          >
          > "Ray at <%=sLocation% > [MVP]" <myfirstname at lane34 dot com> wrote in
          > message news:O8KRKEjfEH A.396@TK2MSFTNG P12.phx.gbl...[color=green]
          >> Make sure it's not your AV software.
          >> http://www.aspfaq.com/show.asp?id=2180
          >>
          >> Ray at work
          >>
          >> "Christian Blackburn" <Christian_Blac kburn@Damn.Spam @Hotmail.com> wrote
          >> in
          >> message news:ui9qcuZfEH A.3632@TK2MSFTN GP11.phx.gbl...[color=darkred]
          >> > Hi Gang,
          >> > I have so far been unable to get the TextStream Object to write on[/color][/color]
          > Fat32.[color=green][color=darkred]
          >> > I'm using Windows 2000 Pro Sp4. Scripts have write access and I even
          >> > tried
          >> > giving IUSR user level writes and still when I tried loading the ASP[/color][/color]
          > page[color=green][color=darkred]
          >> > it
          >> > just hangs trying to create the file :(.
          >> >
          >> > <%
          >> > Function WriteText(sPath , sText)
          >> > Dim fso, TextFile
          >> >
          >> > Set fso = CreateObject("S cripting.FileSy stemObject")
          >> >
          >> > Set TextFile = fso.CreateTextF ile(sPath, True)
          >> >
          >> > TextFile.Write sText
          >> >
          >> > TextFile.Close
          >> >
          >> > End Function
          >> >
          >> >
          >> > WriteText "Test.htm", "Testing, Testing, 1, 2, 3"
          >> > %>
          >> >
          >> >
          >> > Can anyone tell me what I'm doing wrong? This must be a security
          >> > issue,
          >> > but
          >> > how and where?
          >> > Thanks,
          >> > Christian Blackburn
          >> >
          >> >[/color]
          >>
          >>[/color]
          >
          >[/color]


          Comment

          • Christian Blackburn

            #6
            Re: How can I get the TextStream Object to write on Fat32?

            Hi Ray,
            Yes I understand why NAV is confused, but it should be able to detect via
            the already running tray icon what user account is really running and
            display the dialog to that user.
            Cheers,
            Christian Blackburn

            "Ray at <%=sLocation% > [MVP]" <myfirstname at lane34 dot com> wrote in
            message news:u5ZQTFufEH A.3632@TK2MSFTN GP09.phx.gbl...[color=blue]
            > Well, if you think about it, the ASP page is running on the server under[/color]
            the[color=blue]
            > IUSR's context, so if IUSR were a physical being logged on, perhaps there
            > would be a dialog you'd see.
            >
            > Ray at work
            >
            > "Christian Blackburn" <Christian_Blac kburn@Damn.Spam @Hotmail.com> wrote in
            > message news:epVpwPpfEH A.3412@TK2MSFTN GP11.phx.gbl...[color=green]
            > > Hi Ray,
            > > You know the weird part about the error is that with the installers I
            > > would
            > > visibly be presented with the approve or disapprove scripting activity
            > > dialog. However, with an ASP page I got nothing, but an hour glass in[/color][/color]
            my[color=blue][color=green]
            > > web browser. I think that's a serious problem with NAV 2003.
            > > Cheers,
            > > Christian Blackburn
            > >
            > >
            > > "Ray at <%=sLocation% > [MVP]" <myfirstname at lane34 dot com> wrote in
            > > message news:O8KRKEjfEH A.396@TK2MSFTNG P12.phx.gbl...[color=darkred]
            > >> Make sure it's not your AV software.
            > >> http://www.aspfaq.com/show.asp?id=2180
            > >>
            > >> Ray at work
            > >>
            > >> "Christian Blackburn" <Christian_Blac kburn@Damn.Spam @Hotmail.com> wrote
            > >> in
            > >> message news:ui9qcuZfEH A.3632@TK2MSFTN GP11.phx.gbl...
            > >> > Hi Gang,
            > >> > I have so far been unable to get the TextStream Object to write on[/color]
            > > Fat32.[color=darkred]
            > >> > I'm using Windows 2000 Pro Sp4. Scripts have write access and I even
            > >> > tried
            > >> > giving IUSR user level writes and still when I tried loading the ASP[/color]
            > > page[color=darkred]
            > >> > it
            > >> > just hangs trying to create the file :(.
            > >> >
            > >> > <%
            > >> > Function WriteText(sPath , sText)
            > >> > Dim fso, TextFile
            > >> >
            > >> > Set fso = CreateObject("S cripting.FileSy stemObject")
            > >> >
            > >> > Set TextFile = fso.CreateTextF ile(sPath, True)
            > >> >
            > >> > TextFile.Write sText
            > >> >
            > >> > TextFile.Close
            > >> >
            > >> > End Function
            > >> >
            > >> >
            > >> > WriteText "Test.htm", "Testing, Testing, 1, 2, 3"
            > >> > %>
            > >> >
            > >> >
            > >> > Can anyone tell me what I'm doing wrong? This must be a security
            > >> > issue,
            > >> > but
            > >> > how and where?
            > >> > Thanks,
            > >> > Christian Blackburn
            > >> >
            > >> >
            > >>
            > >>[/color]
            > >
            > >[/color]
            >
            >[/color]


            Comment

            • Ray at

              #7
              Re: How can I get the TextStream Object to write on Fat32?

              Not really. Think about it like a terminal services server or something.
              If you're logged on to a Terminal Services session and so is someone else,
              and you run into something that should display a NAV dialog, should all
              users see that? No, only the user to whom it applies. In this case, that
              user is IUSR.

              Ray at work

              "Christian Blackburn" <Christian_Blac kburn@Damn.Spam @Hotmail.com> wrote in
              message news:uQHb9tvfEH A.1652@TK2MSFTN GP09.phx.gbl...[color=blue]
              > Hi Ray,
              > Yes I understand why NAV is confused, but it should be able to detect via
              > the already running tray icon what user account is really running and
              > display the dialog to that user.
              > Cheers,
              > Christian Blackburn
              >
              > "Ray at <%=sLocation% > [MVP]" <myfirstname at lane34 dot com> wrote in
              > message news:u5ZQTFufEH A.3632@TK2MSFTN GP09.phx.gbl...[color=green]
              >> Well, if you think about it, the ASP page is running on the server under[/color]
              > the[color=green]
              >> IUSR's context, so if IUSR were a physical being logged on, perhaps there
              >> would be a dialog you'd see.
              >>
              >> Ray at work
              >>
              >> "Christian Blackburn" <Christian_Blac kburn@Damn.Spam @Hotmail.com> wrote
              >> in
              >> message news:epVpwPpfEH A.3412@TK2MSFTN GP11.phx.gbl...[color=darkred]
              >> > Hi Ray,
              >> > You know the weird part about the error is that with the installers I
              >> > would
              >> > visibly be presented with the approve or disapprove scripting activity
              >> > dialog. However, with an ASP page I got nothing, but an hour glass in[/color][/color]
              > my[color=green][color=darkred]
              >> > web browser. I think that's a serious problem with NAV 2003.
              >> > Cheers,
              >> > Christian Blackburn
              >> >
              >> >
              >> > "Ray at <%=sLocation% > [MVP]" <myfirstname at lane34 dot com> wrote in
              >> > message news:O8KRKEjfEH A.396@TK2MSFTNG P12.phx.gbl...
              >> >> Make sure it's not your AV software.
              >> >> http://www.aspfaq.com/show.asp?id=2180
              >> >>
              >> >> Ray at work
              >> >>
              >> >> "Christian Blackburn" <Christian_Blac kburn@Damn.Spam @Hotmail.com>
              >> >> wrote
              >> >> in
              >> >> message news:ui9qcuZfEH A.3632@TK2MSFTN GP11.phx.gbl...
              >> >> > Hi Gang,
              >> >> > I have so far been unable to get the TextStream Object to write on
              >> > Fat32.
              >> >> > I'm using Windows 2000 Pro Sp4. Scripts have write access and I
              >> >> > even
              >> >> > tried
              >> >> > giving IUSR user level writes and still when I tried loading the ASP
              >> > page
              >> >> > it
              >> >> > just hangs trying to create the file :(.
              >> >> >
              >> >> > <%
              >> >> > Function WriteText(sPath , sText)
              >> >> > Dim fso, TextFile
              >> >> >
              >> >> > Set fso = CreateObject("S cripting.FileSy stemObject")
              >> >> >
              >> >> > Set TextFile = fso.CreateTextF ile(sPath, True)
              >> >> >
              >> >> > TextFile.Write sText
              >> >> >
              >> >> > TextFile.Close
              >> >> >
              >> >> > End Function
              >> >> >
              >> >> >
              >> >> > WriteText "Test.htm", "Testing, Testing, 1, 2, 3"
              >> >> > %>
              >> >> >
              >> >> >
              >> >> > Can anyone tell me what I'm doing wrong? This must be a security
              >> >> > issue,
              >> >> > but
              >> >> > how and where?
              >> >> > Thanks,
              >> >> > Christian Blackburn
              >> >> >
              >> >> >
              >> >>
              >> >>
              >> >
              >> >[/color]
              >>
              >>[/color]
              >
              >[/color]


              Comment

              Working...