Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


OpenTextFile

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> ASP >> OpenTextFile
  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 >>
 OpenTextFile - 7/29/2008 6:16:36 AM   
  Chriz

 

Posts: 2
Score: 0
Joined: 7/29/2008
Status: offline
Hi,
I'm new here and to VBScript. I need to open a CSV file and store these data in the database. I already fail on opening the CSV, because FileExists returns FALSE and I have no idea how to find out the exact file position.
Here's the script I wrote so far:

      

The "test.csv" is in the same folder then the ASP script above. The message output is always "D:\Webs\cli142\affiliate_test\admin\xyz\test.csv does not exist". In the FTP program, I see this server path: "/webroot/affiliate_test/admin/xyz". Is "webroot" a virtual directory? I just want to open a file by a script that is in the same directory :(

Thanks in advance,
Chris
 
 
Post #: 1
 
 RE: OpenTextFile - 7/30/2008 9:02:54 AM   
  Chriz

 

Posts: 2
Score: 0
Joined: 7/29/2008
Status: offline
Hm it took me a while to find out that "On Error Resume Next" must be removed to see the error messages.
This forum is kind of strange, no answer for that beginner problem, but no.1 on "vbscript forum" in Google.

(in reply to Chriz)
 
 
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 >> OpenTextFile 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