Arsip: Copy otomatis kedalam folder yang dbuat secara otomatis

more 16 years ago
arjuna_1982
Tolooong................
saya mau buat program ngopy scr otomatis
kedalam folder yang aku buat secara otomatis berdasarkan tanggal yang berlaku.
kira2... gmn y...
sbenarnx folderx sudah terbuat otomatis tp file yang dicopy tidak masuk...
kurang lebih source codex kaya' gini.......
procedure TFormCopyData.Timer1.Timer(Sender: TObject);
begin
Label1.Caption :=TimeToStr(Now);
If MaskEdit1.Text = Label1.Caption then
Begin
Timer1.Enabled :=false;
CreateDir(Label5.Caption); {buat folder berdsar tgl yg berlaku}
Copyfile(pchar('C:\boot.ini'),pChar(LOKASI FOLDER YANG TELAH DIBUAT\boot.ini'),False); {sy coba pake 'd:\label1.caption\bootcopy.ini
') g' bisa masuk tp folder dah terbuat};
Timer1.Enabled :=true;
End;
end;
toolooong pencerahanya....................

more 16 years ago
pebbie
lha.. itu kok 'd:\label1.caption\bootcopy.ini' ?
bukannya harusnya
'd:'+label1.caption+'\bootcopy.ini'

more 16 years ago
arjuna_1982
udah tuh.... VB/PB
ttap ae kaga' ngefek... dah aku coba
'+label1.caption+'
"'+label1.caption+'"
Tetep ae g bisa......
yo opo yo.....

more 16 years ago
deLogic
kalo source code nya begini:
procedure TFormCopyData.Timer1.Timer(Sender: TObject);
begin
Label1.Caption :=TimeToStr(Now);
If MaskEdit1.Text = Label1.Caption then
Begin
Timer1.Enabled :=false;
CreateDir(Label5.Caption); {buat folder berdsar tgl yg berlaku}
Copyfile(pchar('C:\boot.ini'),pChar(LOKASI FOLDER YANG TELAH DIBUAT\boot.ini'),False); {sy coba pake 'd:\label1.caption\bootcopy.ini
') g' bisa masuk tp folder dah terbuat};
Timer1.Enabled :=true;
End;
end;
Bukankah CreateDir nya harusnya CreateDir(Label1.Caption) ?
Copyfile(pchar('C:\boot.ini'),pChar(Label1.Caption + '\boot.ini')
jadinya mungkin seperti ini:
procedure TFormCopyData.Timer1.Timer(Sender: TObject);
begin
Label1.Caption :=TimeToStr(Now);
If MaskEdit1.Text = Label1.Caption then
Begin
Timer1.Enabled :=false;
CreateDir(Label1.Caption); {buat folder berdsar tgl yg berlaku}
Copyfile(pchar('C:\boot.ini'),pChar(Label1.Caption + '\boot.ini'),False); {sy coba pake 'd:\label1.caption\bootcopy.ini
') g' bisa masuk tp folder dah terbuat};
Timer1.Enabled :=true;
End;
end;

more 16 years ago
asiyrob
gimana klo gunakan xcopy
...
winexec ('xcopy path_sumber path_tujuan');
...

more 16 years ago
arjuna_1982
THE BEST DELPHI
SEMANGAT... membangun indonesia
SEMANGAT... generasi muda
smua butuh proses untuk belajar menjadi lebih baik :wink: 8)

more 16 years ago
asiyrob
telat ngasih tapi bisa jadi reff anda : http://pascal-id.org/dpr/module-News-display-sid-261.pas
more ...
- Pages:
- 1
reply |
Report Obsolete
AI Forward

🚀 We're thrilled to partner with Alibaba Cloud for "AI Forward - Alibaba Cloud Global Developer Summit 2025" in Jakarta! Join us and explore the future of AI. Register now:
https://int.alibabacloud.com/m/1000400772/
#AlibabaCloud #DeveloperSummit #Jakarta #AIFORWARD
Last Articles
Last Topic
- PascalTalk #6: (Podcast) Kuliah IT di luar negeri, susah gak sih?
by LuriDarmawan in Tutorial & Community Project more 4 years ago - PascalTalk #5: UX: Research, Design and Engineer
by LuriDarmawan in Tutorial & Community Project more 4 years ago - PascalTalk #4: Obrolan Ringan Seputar IT
by LuriDarmawan in Tutorial & Community Project more 5 years ago - PascalTalk #2: Membuat Sendiri SMART HOME
by LuriDarmawan in Tutorial & Community Project more 5 years ago - PascalTalk #3: RADically Fast and Easy Mobile Apps Development with Delphi
by LuriDarmawan in Tutorial & Community Project more 5 years ago - PascalTalk #1: Pemanfaatan Artificial Intelligence di Masa Covid-19
by LuriDarmawan in Tutorial & Community Project more 5 years ago - Tempat Latihan Posting
by LuriDarmawan in OOT more 5 years ago - Archive
- Looping lagi...
by idhiel in Hal umum tentang Pascal Indonesia more 13 years ago - [ask] koneksi ke ODBC user Dsn saat runtime dengan ado
by halimanh in FireBird more 13 years ago - Validasi menggunakan data tanggal
by mas_kofa in Hal umum tentang Pascal Indonesia more 13 years ago
Random Topic
- tanya query pada MS Access
by shindo in Hal umum tentang Pascal Indonesia more 18 years ago - data numerik lebih dari 4 milyar error
by goehsatrio in MySQL more 14 years ago - zeos komponen
by grounders in Hal umum tentang Pascal Indonesia more 20 years ago - (OOT) ada yg punya SW buat bikin autorun gak?
by imunk in Form Enhancement & Graphical Controls more 19 years ago - (Ask) TComport
by andraones in Network, Files, I/O & System more 15 years ago - Conection delphi ke rave
by lela in Hal umum tentang Pascal Indonesia more 19 years ago - Menggunakan EventonExit !
by jajang in Tip n Trik Pemrograman more 16 years ago - tanya:datamining
by frigs in Enginering more 18 years ago - DB dalam exe...
by nolabel_id in Enginering more 17 years ago - Naming convention...
by Random in Hal umum tentang Pascal Indonesia more 18 years ago