如何用表單在線建立目錄?
creatfolder.htm
' 表單文件.
<form name="form1" method="post" action="folder.asp">
創(chuàng)建一個文件夾:
<input type="text" name="name">
<input type="submit" name="Submit" value="提交">
</form>
folder.asp
<%@ LANGUAGE = "VBScript" %>
<% Dim Name
Name = Request("Name")
set fs=createobject("scripting.filesystemobject")
MyFolder=server.mappath(""&name&"")
If NOT fs.folderexists(MyFolder) then
fs.createfolder(MyFolder)
End If
If fs.folderexists(MyFolder) then
%>
恭喜,文件夾:<%=MyFolder%>創(chuàng)建成功!
<%Else%%>
噢,出錯啦!
<%End If
%>
相關(guān)文章
CPU,GPU,DPU,TPU,NPU,BPU等處理器的性能及概念
CPU,GPU,DPU,TPU,NPU,BPU各種U還在傻傻分不清么?本文帶你領(lǐng)略這些不同的U所代表的意義,讓你有醍醐灌頂般的醒悟收獲,有需要的朋友可以借鑒參考2021-08-08如何用FileSystemObject組件來做一個站內(nèi)搜索?
如何用FileSystemObject組件來做一個站內(nèi)搜索?...2006-11-11如何計算出當(dāng)前日期屬于定義時間段內(nèi)的第幾星期?
如何計算出當(dāng)前日期屬于定義時間段內(nèi)的第幾星期?...2006-11-11