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
- apm
- PC
- Linux
- MS Windows PE
- Windows 10
- game
- program
- MS windows
- Command
- OS(operating system)
- UNIX
- Backup(Restore)
- webhard
- Network Info(Tool)
- javascript
- calculator
- web
- SSH
- explorer
- 대항해시대
- Crack(Serial Key)
- Disk Partition
- script
- LiveCD(USB)
- portable
- network
- Update
- FTP
- Programming
- H/W
Archives
- Today
- Total
<In Story>
CopyFile() 파일 복사하기 // [C,C++] [MS Windows] [API] [Programming] 본문
Programming/C, C++
CopyFile() 파일 복사하기 // [C,C++] [MS Windows] [API] [Programming]
<In Story, Hi story, History> 2015. 4. 4. 19:34원형 :
CopyFile( LPCSTR lpExistingFileName, LPCTSTR lpNewFileName, BOOL bFailIfExists );
특징 :
1번째 인자값에 있는 파일을 2번째 인자값의 경로에 복사한다.
예제 :
#include<windows.h>
CopyFile(m_cNowPath,m_cTargetPath,false);
부가설명 :
m_cNowPath에 있는 파일을 m_cTargetPath 에 복사한다.
이미 파일이 있을때 그 파일을 보존하는것 ( 즉 덮어쓰기 안한다. )
false 일 경우엔 해당경로에 파일이 존재 하더라도 그 파일 위에 덮어쓴다.
'Programming > C, C++' 카테고리의 다른 글
Windows Disk format api // [C, C++] [MS Windows] [API] [Programming] (0) | 2015.04.04 |
---|