在 CreateObject 中使用 URL 作为目录 VBScript

问题描述

这是我的代码。我想上传它并使用一些 URL 作为目录。但是我发现 FileSystemObject 只能在本地目录中使用。

<!DOCTYPE html>
<html>
<head>
<title>FileSystem Objects</title>
</head>
<body>
    <h><center>FILESYstem OBJECTS</center></h><br>

<%
    Dim fso,f,t
        Set fso = Server.CreateObject("Scripting.FileSystemObject")
        Set f = fso.GetFolder("Some local directory")

        For Each t in f.files
            Response.Write(t.Name & "<br>")
        Next

        Set f = nothing
        Set fso = nothing
%>

</body>
</html>

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)