从ASP页面访问网络文件 [英] Accessing network file form ASP page

查看:66
本文介绍了从ASP页面访问网络文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我必须从asp页面访问网络文件。


我已经红了很多东西在旧帖子和微软的文章,但我不能
仍然解决我的问题。


我在同一个NT域内有两台服务器,每个人都有自己的网站

服务器。


网络服务器总是IIS 5.0。


一个此Web服务器必须以写入模式访问网络文件

在其他服务器内。


我尝试过使用此代码

-------------------

设置fso = Server.CreateObject(" Scripting.fileSystemObject")

uri = \\web21bcklab\c $ \Inetpub \wwwroot \WebModules \Lo gger\debugLog.txt

Response.Write fso.FileExists(uri)

---------------------


存在检查总是返回false。为什么?


如何解决这个问题呢?


thx

Hi all,
I''ve to access to a network file from an asp pages.

I''ve red a lot of things on old posts and on Microsoft article but I can''t
still solve my problem.

I''ve got two server inside the same NT domain, each one has its own web
server.

The web server is always IIS 5.0.

One of this web server have to access to a network file in writing mode
inside the other server.

I''ve tried using this code
-------------------
Set fso = Server.CreateObject("Scripting.fileSystemObject")
uri=\\web21bcklab\c$\Inetpub\wwwroot\WebModules\Lo gger\debugLog.txt
Response.Write fso.FileExists(uri)
---------------------

the existence check returns always false. why ?

How can I solve this problem ?

thx

推荐答案

\ Inetpub \wwwroot \WebModules \Lo gger \ debugb.txt

Response.Write fso.FileExists(uri)

- -------------------


存在检查总是返回false。为什么?


如何解决这个问题?


thx
\Inetpub\wwwroot\WebModules\Lo gger\debugLog.txt
Response.Write fso.FileExists(uri)
---------------------

the existence check returns always false. why ?

How can I solve this problem ?

thx


" ; Lamberti Fabrizio < lambu@from_italy.it>在消息中写道

新闻:Os ************** @ TK2MSFTNGP12.phx.gbl ...
"Lamberti Fabrizio" <lambu@from_italy.it> wrote in message
news:Os**************@TK2MSFTNGP12.phx.gbl...
大家好,
我必须从asp页面访问网络文件。

我在旧帖子和微软文章上发现了很多东西,但我不能仍然解决了我的问题。

我在同一个NT域中有两个服务器,每个都有自己的web服务器。

Web服务器总是IIS 5.0。

其中一个Web服务器必须以写入模式访问其他服务器内的网络文件。

我试过了使用此代码
-------------------
设置fso = Server.CreateObject(" Scripting.fileSystemObject")
uri = \\web21bcklab\c
Hi all,
I''ve to access to a network file from an asp pages.

I''ve red a lot of things on old posts and on Microsoft article but I can''t
still solve my problem.

I''ve got two server inside the same NT domain, each one has its own web
server.

The web server is always IIS 5.0.

One of this web server have to access to a network file in writing mode
inside the other server.

I''ve tried using this code
-------------------
Set fso = Server.CreateObject("Scripting.fileSystemObject")
uri=\\web21bcklab\c


\Inetpub \wwwroot \WebModules \Lo gger \ debugb.txt
Response.Write fso.FileExists(uri)
---------------------

存在检查总是返回false。为什么?

如何解决这个问题?
\Inetpub\wwwroot\WebModules\Lo gger\debugLog.txt
Response.Write fso.FileExists(uri)
---------------------

the existence check returns always false. why ?

How can I solve this problem ?



http://www.aspfaq.com/show.asp?id=2168


-

Tom Kaminski IIS MVP
http ://www.microsoft.com/windowsserv...y/centers/iis/
http://mvp.support.microsoft.com/
http://www.iistoolshed.com/ - 用于运行IIS的工具,脚本和实用程序



http://www.aspfaq.com/show.asp?id=2168

--
Tom Kaminski IIS MVP
http://www.microsoft.com/windowsserv...y/centers/iis/
http://mvp.support.microsoft.com/
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS


这篇关于从ASP页面访问网络文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆