domain .tw idv.tw .com.tw
你正在閱覽 :: 繁體中文:: 學習 ASP SQL VB HTML code

學習 .ASP SQL HTML XML CSS JAVA Perl code study
English Chinese_Traditional Chinese_Simplified

你正在閱覽 :: 繁體中文 Chinese_Traditional

學習.主題:
首頁
ASP
. Active-Server-Flash
. Array
. Connection
. Count
. Counter
. Distinct
. Email
. File
. Folder
»Create
»Rename
»split
. Function
. GetSQLserver
. Header
. mySQL
. Record
. Recordset
. Request
. Response
. Server
. Server-CreateObject
. ServerVariables
. Session
. Special-Symbols
. String
. Sub
. Time
CSS
Ecommerce
HTML
InternetProtocol
JAVA
Microsoft
Robots
SearchEngine
SQL
SQLserver
VBscript
XML

SiteMap

3w....學習.教學 > ASP > folder » create

3w learning

folder >
create

Title:

CreateFolder (sub folder)


建立新資料夾
Description:

Create a Folder You need to change the upper folder permission before you create, delete or rename otherwise you will get error message.


在執行建立刪除或更改檔名之前
你一定別忘了先到你的主機管理員區
修改上你想修改資料夾的權限
Example Code:

<% Dim fso, newfolder Set fso = CreateObject("Scripting.FileSystemObject") thePath="c:\myDirPath\" newfolder=request("folder") if fso.folderexists (thePath&""&newfolder&"") then 'do nothing else fso.createfolder (thePath&""&newfolder&"") end if %> ---------- attention -------- you must check if the folder exists never duplicate folders because it will never work


建新檔前更應該先檢查是否有檔名已經
存在了, 若是重複建檔將會出現錯誤訊息
嚴重者會加重主機的負擔....亦有可能當機
Example Result:


the new folder will be created under myDirPath folder C:\myDirPath\newfolder http://----.com/newfolder/


建立起新資料夾
C:\myDirPath\newfolder\
..
...
...

[ 8/20/2008 ]

www learning school add more scripts and tips memo
You are at >>3WT.EZER.COM >> 3WT.EZER.COM/ASP/FOLDER/CREATE.ASP>>ASP
Helpful link:: SEO web tools :: Live PR | SERP checker
back to top Ezer code adding :: Questions ;email