Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: How to access files from Unix server using FileSystemObject?


Message #1 by wreality@y... on Thu, 28 Jun 2001 18:51:53
Hi,

Is there a way to access files from a Unix server using the 

FileSystemObject?



I know that to access a text file in a Windows server you would have 

something like:



myPath = "C:\TextFiles\MyFile.txt"

set objFSO = Server.CreateObject("Scripting.FileSystemObject")

set objTStream = objFSO.OpenTextFile(myPath, ForReading)



What would the value of myPath be if I wanted to access a file in a Unix 

server? Is this even possible?



Thanks,

Ryan

Message #2 by Vladimir Valdivia Galvan <vvaldivia@t...> on Thu, 28 Jun 2001 19:13:10 -0500
You only can run ASP code inside WindowsNT, so that neves happens. If 

you

are using Chilisoft ASP within UNIX, it will be a great idea to ask 

them.

If you have files in a UNIX server and you want to reach them, maybe 

you

need a FTP client to copy them localy and then use FileSystemObject.



Vladimir Valdivia

WebMaster

http://amarillastelefonica.com





-----Mensaje original-----

De: wreality@y... [mailto:wreality@y...]

Enviado el: Thursday, June 28, 2001 1:52 PM

Para: ASP Web HowTo

Asunto: [asp_web_howto] How to access files from Unix server using

FileSystemObject?



Hi,

Is there a way to access files from a Unix server using the

FileSystemObject?



I know that to access a text file in a Windows server you would have

something like:



myPath =3D "C:\TextFiles\MyFile.txt"

set objFSO =3D Server.CreateObject("Scripting.FileSystemObject")

set objTStream =3D objFSO.OpenTextFile(myPath, ForReading)



What would the value of myPath be if I wanted to access a file in a 

Unix

server? Is this even possible?



Thanks,

Ryan



-
Message #3 by "phil griffiths" <pgtips@m...> on Fri, 29 Jun 2001 12:54:37
There is Unix software called Samba that can allow the Unix machine to 

serve files to Windows - then you could maybe set up a virtual directory 

within IIS pointing to the Unix/Samba server and use the FSO.



I'm not a Unix expert but I expect whoever runs your Unix server will know 

about samba.



> You only can run ASP code inside WindowsNT, so that neves happens. If 

> you

> are using Chilisoft ASP within UNIX, it will be a great idea to ask 

> them.

> If you have files in a UNIX server and you want to reach them, maybe 

> you

> need a FTP client to copy them localy and then use FileSystemObject.

> 

> Vladimir Valdivia

> WebMaster

> http://amarillastelefonica.com

> 

> 

> -----Mensaje original-----

> De: wreality@y... [mailto:wreality@y...]

> Enviado el: Thursday, June 28, 2001 1:52 PM

> Para: ASP Web HowTo

> Asunto: [asp_web_howto] How to access files from Unix server using

> FileSystemObject?

> 

> Hi,

> Is there a way to access files from a Unix server using the

> FileSystemObject?

> 

> I know that to access a text file in a Windows server you would have

> something like:

> 

> myPath =3D "C:\TextFiles\MyFile.txt"

> set objFSO =3D Server.CreateObject("Scripting.FileSystemObject")

> set objTStream =3D objFSO.OpenTextFile(myPath, ForReading)

> 

> What would the value of myPath be if I wanted to access a file in a 

> Unix

> server? Is this even possible?

> 

> Thanks,

> Ryan

> 


  Return to Index