Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


open a file

 
Logged in as: Guest
arrSession:exec spGetSession 2,3,1362
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> ASP >> open a file
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 open a file - 9/15/2004 3:37:49 AM   
  vledda

 

Posts: 9
Score: 0
Joined: 9/6/2004
From:
Status: offline
I'm trying to read from a file placed on a server but i keep getting 'Permission denied' message, i normally have access to the file but not when i try to read from it through my webpage. This is the code i've written:

const ForReading =1
'open txt file
Set oFS = server.CreateObject("Scripting.FileSystemObject")
Set oTF = oFS.OpenTextFile("\\fmsmomrpt001\metrics\MOM\agents_list_by_cg.txt", ForReading)


Any suggestions anyone??
 
 
Post #: 1
 
 Re: open a file - 9/16/2004 12:59:06 AM   
  dalejwright22

 

Posts: 11
Score: 0
Joined: 9/15/2004
From: United Kingdom
Status: offline
if the code works fine on your testing server, could be NT file permission issue. check with your system admin to see if execute and script access is enabled for the Internet User Account.
also i notice that when your openting the text file, you are displaying the relative url, trying using a absoulte URL..i.e C:\wwwroot\myfiles etc etc

(in reply to vledda)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> ASP >> open a file Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts