最安全的还是使用wybm(知道和不知道的)的
<%
set fso=server.CreateObject ("scripting.filesystemobject")
temp_path="c:\Libra"
if fso.FolderExists(temp_path)=false then
fso.CreateFolder(temp_path)
end if
'这里就直接操作文件了
set fso=nothing
%>
首先要确定用户有写的权限,然后:
<%
set fso=server.CreateObject ("scripting.filesystemobject")
temp_path="c:\Libra"
if fso.FolderExists(temp_path)=false then
fso.CreateFolder(temp_path)
else
Response.Write "This folder is exists"
end if
set fso=nothing
%>