반응형
Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 여행
- 함수
- Android
- Unity
- 커피
- 드립 커피
- 자마린
- fso
- 아라비카
- 프렌치프레스
- Classic ASP
- shared
- 로부스타
- 태그를 입력해 주세요.
- 커피블로그
- 리베리카
- 원두
- xamarin.forms
- xamarin.android
- ServerVariables
- vbscript
- KO
- 템플릿
- asp
- KnockoutJS
- 커피역사
- NGUI
- 제주도
- xamarin
- 커피풍미
Archives
- Today
- Total
개발人
폴더 생성 및 이름 변경 본문
1. 폴더 생성
Dim spath : spath = Server.mapPath("경로") ' 우선 경로를 지정해 준다.
Dim fso
Set fso = Server.CreateObject("Scripting.FileSystemObject")
Dim folder : folder = "경로"
' 폴더 생성
fso.CreateFolder(folder)
' 폴더에 파일이 존재하는지의 여부 판단
if (fso.FileExists(spath & folder)) then
-- 내용 --
end if
Set fso = Nothing
2. 폴더 이름 변경
Dim strDirold : strDirold = 기존폴더명
Dim strFname : strFname = 변겅폴더명
If objFs.FolderExists(strDirold) Then
set objFolder = objFs.GetFolder(strDirold)
if isobject(objFolder) then
objFolder.name = strFname
end if
set objFolder = Nothing
End if
반응형
'Classic ASP' 카테고리의 다른 글
| 쿠키공유 (0) | 2014.08.07 |
|---|---|
| 쌍따옴표 & 홑따옴표 치환 (0) | 2014.08.07 |
| 엑셀파일 변환 (0) | 2014.08.05 |
| 캐시 처리 (0) | 2014.08.04 |
| ASP 에서 트랜젝션 처리 (0) | 2014.08.03 |
Comments