patrickdrd
Programmer
Hi guys! I am writing an asp page in order to access a text file on a server, like this:
myPath = "\\ServerName\log"
LogFile = myYear & myMonth & myDay & ".log"
LogFile = myPath & "\" & LogFile
Set objFSO = CreateObject("Scripting.FileSystemObject"
Set objTXT = objFSO.OpenTextFile(LogFile)
My problem is that I get permission denied message when trying to access it. In fact, this server does need a password, but I do not know how to set it, e.g. how can I access a server by typing username and password in the command prompt?
I can access this file though if I copy it to the and use:
Set objTXT = objFSO.OpenTextFile(server.MapPath(LogFile))
Thanks in advance!
myPath = "\\ServerName\log"
LogFile = myYear & myMonth & myDay & ".log"
LogFile = myPath & "\" & LogFile
Set objFSO = CreateObject("Scripting.FileSystemObject"
Set objTXT = objFSO.OpenTextFile(LogFile)
My problem is that I get permission denied message when trying to access it. In fact, this server does need a password, but I do not know how to set it, e.g. how can I access a server by typing username and password in the command prompt?
I can access this file though if I copy it to the and use:
Set objTXT = objFSO.OpenTextFile(server.MapPath(LogFile))
Thanks in advance!