自動傳送檔案 |
答題得分者是:william
|
Paicaso
中階會員 發表:140 回覆:124 積分:52 註冊:2002-09-04 發送簡訊給我 |
|
Mickey
版主 發表:77 回覆:1882 積分:1390 註冊:2002-12-11 發送簡訊給我 |
|
Paicaso
中階會員 發表:140 回覆:124 積分:52 註冊:2002-09-04 發送簡訊給我 |
|
Mickey
版主 發表:77 回覆:1882 積分:1390 註冊:2002-12-11 發送簡訊給我 |
1. 在資料庫建立一個 Table (含一個 BLOB 欄位),例如 :
create table DB_FILE (APP_NAME varchar(30) not null,
APP_VER varchar(20) not null,
APP_BODY BLOB) 2. 有新版 application 時, 需用另一個 application Tool 負責 "check in" File into database. 3. 各 application 的 connection after connect event 中,
先檢查該application是否為最新版, 若否, 則 shellexecute 另一個
application 去 database download 新版. 4. 若覺得做法太麻煩, 運用 FTP ( Indy ), 應該也是可以考慮的方法. 發表人 - Mickey 於 2003/04/21 23:48:59
|
China Join
中階會員 發表:81 回覆:242 積分:89 註冊:2003-03-12 發送簡訊給我 |
|
william
版主 發表:66 回覆:2535 積分:3048 註冊:2002-07-11 發送簡訊給我 |
http://delphi.ktop.com.tw/topic.php?topic_id=4358 If you want to monitor modified files, using some kind of hash (e.g. MD5) instead of the file datetime would be better.
|
China Join
中階會員 發表:81 回覆:242 積分:89 註冊:2003-03-12 發送簡訊給我 |
|
william
版主 發表:66 回覆:2535 積分:3048 註冊:2002-07-11 發送簡訊給我 |
引言:想請教 william 版主,.NET 下面可以直接得知某個檔案的某個屬性被改變了 小弟之前用 BCB 都是自己作檔案比對,有沒有可以直接得到某個檔案被改變的 方法ㄋ? THXI think unless you want to do the tricky hook to some kind of Windows API (e.g. those real-time virus protection programs), this is no easy way to monitor a file... Need to get notified when a directory is modified and then scan it for modified files |
China Join
中階會員 發表:81 回覆:242 積分:89 註冊:2003-03-12 發送簡訊給我 |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |