C++Builder Programming Forum
C++Builder  |  Delphi  |  FireMonkey  |  C/C++  |  Free Pascal  |  Firebird
볼랜드포럼 BorlandForum
 경고! 게시물 작성자의 사전 허락없는 메일주소 추출행위 절대 금지
C++빌더 포럼
Q & A
FAQ
팁&트릭
강좌/문서
자료실
컴포넌트/라이브러리
메신저 프로젝트
볼랜드포럼 홈
헤드라인 뉴스
IT 뉴스
공지사항
자유게시판
해피 브레이크
공동 프로젝트
구인/구직
회원 장터
건의사항
운영진 게시판
회원 메뉴
북마크
볼랜드포럼 광고 모집

C++빌더 Q&A
C++Builder Programming Q&A
[64301] Re:휴지통 파일 경오 얻기.
[] 1545 읽음    2011-05-02 13:26
향수 님이 쓰신 글 :
: 휴지통의 파일 경로를 얻기 위해서
:
: GetSpecialFolderPath(CSIDL_BITBUCKET);
: 호출하여
: 하단처러 처리를 해보았습니다..근데 휴지통만 가상? 경로라서 그런지.. 경로를 얻지못합니다..
:
: 다른 방법이 있을까요..?
:
:
: String __fastcall InternetCleaner::GetSpecialFolderPath(int nFolder)
: {
:   char path[MAX_PATH];
:   AnsiString strPath("");
:   LPITEMIDLIST piidl;
:   try
:   {
:        if(SHGetSpecialFolderLocation(NULL,nFolder,&piidl)!=NOERROR) return strPath;
:        if(!SHGetPathFromIDList(piidl, path)) return strPath;
:        strPath=path;
:        //if(strPath[strPath.Length()]!='\\') strPath=strPath+"\\";
:   }
:   catch(Exception &e)
:   {
:   }
:   return strPath;
: }

참고: http://stackoverflow.com/questions/936397/finding-the-recycle-bin-on-a-local-ntfs-drive

+ -

관련 글 리스트
64265 휴지통 파일 경오 얻기. 향수 1443 2011/04/28
64301     Re:휴지통 파일 경오 얻기. 1545 2011/05/02
64294     Re:휴지통 파일 경오 얻기. 1467 2011/05/01
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.