최근 글 목록
-
- temp
- 로이쿤
- 2008
-
- Nirvana - Smells like teen...
- 로이쿤
- 2008
-
- RATM - bombtrack
- 로이쿤
- 2008
-
- 정보통신활동에서 시작은 했...(3)
- 로이쿤
- 2007
-
- Effective 정리는 Springnot...
- 로이쿤
- 2007
dir 생성
CreateDirectory("dir이름",0);
dir 제거
removeDirectory는 파일이 있거나 하위폴더가 있는 dir을 지우지 못함. system call이 강력.
string command = "rd /S /Q "";
string rd = "dir이름";
string sysComm = command + rd;
system(sysComm.c_str());
dir 이동과 복귀
char cwd[1024];
if ( GetCurrentDirectory(1024, (LPTSTR)cwd) != 0)
{
if ( SetCurrentDirectory(".\temp") )
{
//... 이동후 할일들
SetCurrentDirectory(cwd);
}
}
최근 댓글 목록