Reply
Problem Write text into text file
Old 09-09-2004, 11:53 PM Problem Write text into text file
Novice Talker

Posts: 13
I have a text file in Test_1/testing.txt


Code:
DIM Stuff, myFSO, WriteStuff, source, number, description
  Stuff = "hello"
  SET myFSO = CreateObject("Scripting.FileSystemObject") 
  SET WriteStuff = myFSO.OpenTextFile("C:/Inetpub/wwwroot/Test_1/testing.txt", 8, True) 
  WriteStuff.WriteLine(Stuff) 
  WriteStuff.Close 
  response.write "<H2>Error Found, please contact Technical Support</H2>"
  SET WriteStuff = NOTHING 
  SET myFSO = NOTHING
This is the error message :
Error Type:
Microsoft VBScript runtime (0x800A0046)
Permission denied
superman2004 is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 09-10-2004, 09:56 AM
techwench's Avatar
Code Monkey

Posts: 1,446
Name: Danalyn
Location: Sherman, TX
Check the permissions for "testing.txt". Make sure IUSR_{machine_name} has permissions to write to the file.
__________________
blog explosion | personal | portfolio
techwench is offline
Reply With Quote
View Public Profile Visit techwench's homepage!
 
Old 09-12-2004, 11:52 PM
Novice Talker

Posts: 13
i dunno how to check, pls can u teach me?
superman2004 is offline
Reply With Quote
View Public Profile
 
Old 09-13-2004, 08:42 AM
Kyrnt's Avatar
The Post-Mod Years

Posts: 2,536
Location: Western Maryland
Right-click on the file, click Properties. Go over to the Security tab and look for the user to which Prissed refers.
__________________
—Kyrnt
Kyrnt is offline
Reply With Quote
View Public Profile Visit Kyrnt's homepage!
 
Reply     « Reply to Problem Write text into text file
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.14099 seconds with 12 queries