473,587 Members | 2,505 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
Jul 19 '05 #1
6 1681
Make sure it's not your AV software.
http://www.aspfaq.com/show.asp?id=2180

Ray at work

"Christian Blackburn" <Ch************ *****@Damn.Spam @Hotmail.com> wrote in
message news:ui******** ******@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

Jul 19 '05 #2
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:O8******** *****@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" <Ch************ *****@Damn.Spam @Hotmail.com> wrote in
message news:ui******** ******@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


Jul 19 '05 #3
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:O8******** *****@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" <Ch************ *****@Damn.Spam @Hotmail.com> wrote in
message news:ui******** ******@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


Jul 19 '05 #4
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" <Ch************ *****@Damn.Spam @Hotmail.com> wrote in
message news:ep******** ******@TK2MSFTN GP11.phx.gbl...
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:O8******** *****@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" <Ch************ *****@Damn.Spam @Hotmail.com> wrote
in
message news:ui******** ******@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
>
>



Jul 19 '05 #5
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:u5******** ******@TK2MSFTN GP09.phx.gbl...
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" <Ch************ *****@Damn.Spam @Hotmail.com> wrote in
message news:ep******** ******@TK2MSFTN GP11.phx.gbl...
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:O8******** *****@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" <Ch************ *****@Damn.Spam @Hotmail.com> wrote
in
message news:ui******** ******@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
>
>



Jul 19 '05 #6
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" <Ch************ *****@Damn.Spam @Hotmail.com> wrote in
message news:uQ******** ******@TK2MSFTN GP09.phx.gbl...
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:u5******** ******@TK2MSFTN GP09.phx.gbl...
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" <Ch************ *****@Damn.Spam @Hotmail.com> wrote
in
message news:ep******** ******@TK2MSFTN GP11.phx.gbl...
> 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:O8******** *****@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" <Ch************ *****@Damn.Spam @Hotmail.com>
>> wrote
>> in
>> message news:ui******** ******@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
>> >
>> >
>>
>>
>
>



Jul 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3137
by: risa | last post by:
I tried to read a text file using the Textstream object and each file line has 4 elements. How do I put them in 4 separate table cells? Thand you very much in advance. Risa
0
1958
by: Steve Bright | last post by:
In an ASP page, I am using the FileSystemObject OpenTextFile method to initiate a TextStream object. In some files I have long lines and it appears that these are being truncated to 2048 characters. This truncation occurs whether I use the ReadLine method or use a loop of Read(1) while !AtEndOfLine. After the supposed line end the next read...
3
3641
by: George Hester | last post by:
In Windows 2000 I need permissions set so that I can write a text file to the folder when the asp page is loaded. Right now I have only these permissions set: Administrator: Full System: Full Everyone: Read and Execute, List, Read Network: Read and Execute. List. Read Is there some other "user" that I can give permissions to to write a...
1
1072
by: Berkdan | last post by:
hi all, i want to learn this about session object in asp, when i connect to the site can session object write my ip adress to the text file and when i cut the connection then can it write offline to the same text file? it must write when my dial up connection was cutted. thank you very much.
3
1354
by: Berkdan | last post by:
hi all, i want to learn this about session object in asp, when i connect to the site can session object write my ip adress to the text file and when i cut the connection then can it write offline to the same text file? it must write when my dial up connection was cutted. can i use session or is there anyway? if it is possible please write...
1
1849
by: AspProgrammer | last post by:
Hello I'm writing a web application where i upload a file. then i open the file use textstream. At the end of my application i close it by using TextStream.close. But when i try to delete the file on my hard disk i keep getting the error "file is being used by other program or person". The only solution then is to restart iis and then...
5
2452
by: Michael Tissington | last post by:
I have an application written in C++ (NOT .NET) which creates an instance of a vb .net object. My application releases the .net object when it has finished using it. However .NET GC is not destroying the object until my application closes which can be minutes or hours later. How can my C++ application force the .NET object to be TOTALY...
1
2667
by: morau99 | last post by:
I'm having a problem using a TextSteam object to write to file: The following produces an error when the Access field I am writing from contains a return character: a.Write strText It appears as if the call to Write sees the return as the end of the argument (thus it appears to be missing the closing quote marks).
1
2348
by: mike.biang | last post by:
I am using the textstream object to read a CSV file and parse through the fields. I use the readline() method to read in each line of the file, and parse the contents into the values of the different fields. With files generated on a windows system, this works fine. However, when working with CSV files genereated through Excel on a Mac,...
0
7920
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7849
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8215
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8347
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7973
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6626
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5718
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3844
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1454
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.