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 4 years ago - PascalTalk #2: Membuat Sendiri SMART HOME
by LuriDarmawan in Tutorial & Community Project more 4 years ago - PascalTalk #3: RADically Fast and Easy Mobile Apps Development with Delphi
by LuriDarmawan in Tutorial & Community Project more 4 years ago - PascalTalk #1: Pemanfaatan Artificial Intelligence di Masa Covid-19
by LuriDarmawan in Tutorial & Community Project more 4 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 12 years ago - [ask] koneksi ke ODBC user Dsn saat runtime dengan ado
by halimanh in FireBird more 12 years ago - Validasi menggunakan data tanggal
by mas_kofa in Hal umum tentang Pascal Indonesia more 12 years ago
Random Topic
- tanya, aplikasi server/client
by noo_r1r1n in Network, Files, I/O & System more 14 years ago - menghapus Format Rupiah(Rp) DiDBEedit
by saysansay in Enginering more 19 years ago - client server lemmmooth
by e_soep in Network, Files, I/O & System more 18 years ago - replace string
by vera in Tip n Trik Pemrograman more 16 years ago - Error waktu buat table di Interbase
by l1th1um in FireBird more 17 years ago - CTRL+ALT+DEL
by umarbakri in Hal umum tentang Pascal Indonesia more 18 years ago - Trouble Insert Image ke Oracle 9i...
by Chang80 in MySQL more 19 years ago - SQL Query Error-where=(fieldnya integer)
by abu_nawm in MySQL more 15 years ago - filter untuk menghitung record
by idhiel in Enginering more 12 years ago - kenapa Ambiguous column name 'tgl'.
by ricky_seldjatem in Tip n Trik Pemrograman more 16 years ago