»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 10-22-2003, 09:28 PM   #1 (permalink)
Registered User
 
Join Date: Oct 2001
Location: TOO close to Wash DC
Posts: 7,956
vass0922 is on a distinguished road
ASP problem

Ok back to the vb thing.. but with asp this time

sFilePath = Server.Mappath("statfile.csv") & "<BR>"
Response.Write "FilePath = " & sFilePath & "<BR>"

Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
Response.Write "Opening file... <BR>"

Set objStatFile = objFSO.OpenTextFile(sFilePath, 1, TRUE)
If Err.Number <> 0 Then
Response.Write "Doh its borked " & Err.Number & ": " & Err.Description
Else
Response.Write "Files open... loop time<BR>"
End If


EVERY STINKING TIME I get file not found
But the debug output on the webpage shows the correct path!

FilePath = D:\inetpub\wwwroot\pathtofolder\statfile.csv

object is open...
Opening file...
Files open... loop time

Microsoft VBScript runtime error '800a01a8'

Object required: ''

/pathtofolder/FolderMonitor.asp, line 53

Any clues?!?!?!

vass0922 is offline   Reply With Quote
Old 10-22-2003, 09:40 PM   #2 (permalink)
Registered User
 
Join Date: Oct 2001
Location: TOO close to Wash DC
Posts: 7,956
vass0922 is on a distinguished road
OMG!!! I'm a freaking RETARD!!!



sFilePath = Server.Mappath("statfile.csv") & "<BR>"

yeah.. I'm sure the server just loves that request
which also explains why it looks ok on the webpage.

web pages suck
__________________
<< Insert exceedingly large and overly verbose message of how 1337 you are here including full specs of every vehicle you've ever driven and PC you've owned >>
vass0922 is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

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


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 01:13 AM.