全國最多中醫師線上諮詢網站-台灣中醫網
發文 回覆 瀏覽次數:2253
推到 Plurk!
推到 Facebook!

【BCB】【問題】關於Indy TIdFTP元件的List問題

答題得分者是:RaynorPao
surekem
一般會員


發表:1
回覆:1
積分:0
註冊:2002-10-25

發送簡訊給我
#1 引用回覆 回覆 發表時間:2004-11-20 22:10:53 IP:61.31.xxx.xxx 未訂閱
請問使用Indy 9.0.17的TIdFTP元件,呼叫List函數時, 例如: TStringList* ListContent=new TStringList; IdFTP1->List(ListContent, "*", true); 如此依然會將file資訊list出來,無法只list出directory 但是依據help檔案指出,使用"*"做參數,可以只list出directory: *.* - All files in the current directory. * - All directory entries in the current directory. *. - All files regardless of extension in the current directory. A??.txt - All text files that have a 3-character name starting with 'A'. 請問要如何解決此問題? 謝謝
RaynorPao
版主


發表:139
回覆:3622
積分:7025
註冊:2002-08-12

發送簡訊給我
#2 引用回覆 回覆 發表時間:2004-11-22 11:08:37 IP:211.20.xxx.xxx 未訂閱
引言: 請問使用Indy 9.0.17的TIdFTP元件,呼叫List函數時, 例如: TStringList* ListContent=new TStringList; IdFTP1->List(ListContent, "*", true); 如此依然會將file資訊list出來,無法只list出directory 但是依據help檔案指出,使用"*"做參數,可以只list出directory: *.* - All files in the current directory. * - All directory entries in the current directory. *. - All files regardless of extension in the current directory. A??.txt - All text files that have a 3-character name starting with 'A'. 請問要如何解決此問題?
surekem 你好:
(1)可以試著先修改這篇文章中的範例,只要列出「目錄」的部分即可
   ><>
(>    < src="http://delphi.ktop.com.tw/loadfile.php?TOPICID=10003806&CC=223734"> -- Enjoy Researching & Developing --    發表人 - RaynorPao 於 2004/11/22  22:07:15
        
------
-- 若您已經得到滿意的答覆,請適時結案!! --
-- 欲知前世因,今生受者是;欲知來世果,今生做者是 --
-- 一切有為法,如夢幻泡影,如露亦如電,應作如是觀 --
surekem
一般會員


發表:1
回覆:1
積分:0
註冊:2002-10-25

發送簡訊給我
#3 引用回覆 回覆 發表時間:2004-11-22 21:25:38 IP:61.31.xxx.xxx 未訂閱
先謝謝 RaynorPao 版主回應 其實之前已經搜尋過RaynorPao 版主建議的文章,也有下載過source檔案,並且稍微研究過...    ... 小弟可以用處理string的方式擷取目錄,並且切換目錄 但是問題是只想單純的列出dir和file,不想列出其它detail的部份    還是很感謝
系統時間:2024-05-06 3:21:51
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!