ASP 怎么检查一个网络文件是否纯在(200分)

来源:百度知道 编辑:UC知道 时间:2024/05/25 10:01:38
1,比如说我想检查
http://www.jzgl.com.cn/BBS/uploads/736/Y2Jja2VoaGlhYmdtaG03.mp3
是否能够连接通,是否存在这个网络文件
要怎么写??

2,用什么方式下载那个文件到指定的目录去?

要ASP语言,,,,,越详细者得分
就2楼复制的有点常识,其他的都算路过了

检查指定的磁盘 文件夹 或是文件是否存在
例如:拿检查C盘来检验.
<html>
<body>
<%
dim objfso
set objfso=server.createobject("scripting.filesystemobject")
if objfso.driveexists("c:") then
response.write"磁盘C是存在的"
else
response.write"磁盘C是不存在的"
end if

if objfso.folderexists(server.mappath("www")) then
response.write"www文件夹是存在的"
else
response.write"www文件夹是不存在的"
end if

if objfso.fileexists(server.mappath("net118_com.asp")) then
response.erite"net118_com.asp文件是存在的"
else
response.write"net118_com.asp文件是不存的"
end if

set objfso=nothing
%>
</body>
</html>

检查指定的磁盘 文件夹 或是文件是否存在
例如:拿检查C盘来检验.
<html>
<body>
<%
dim objfso
set objfso=server.createobject("scripting.filesystemobject&qu