Login | |
|
 |
Using URL in OpenTextFile - 2/28/2006 6:45:56 AM
|
|
 |
|
| |
panex
Posts: 1
Score: 0
Joined: 2/6/2006
Status: offline
|
Hello everyone... Here is my question: I have an asp page in one server(server1), and a txt file in another server(sever2)... I would like to open this txt file through the command OpenTextFile, using the following code: Const ForReading = 1, ForWriting = 2, ForAppending = 3, TristateFalse=0 'Dim FileName, f,fs,TextBody 'FileName = http://192.146.0.1/folder/text.txt 'Set fs = CreateObject("Scripting.FileSystemObject") 'Set f=fs.OpenTextFile(FileName,ForReading,TristateFalse) However, the command OpenTextFile expects a physical path and not a URL...How can i solve that???? Since the page and the file are in different servers, the comand Server.MapPath can't be used... Any help will be really, really apreciated!!!!!! Thanks in advance !!!!! Daniel
|
|
| |
|
|
|
|
|