Arsip: Copy otomatis kedalam folder yang dbuat secara otomatis
more 15 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 15 years ago
pebbie
lha.. itu kok 'd:\label1.caption\bootcopy.ini' ?
bukannya harusnya
'd:'+label1.caption+'\bootcopy.ini'
more 15 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 15 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 15 years ago
asiyrob
gimana klo gunakan xcopy
...
winexec ('xcopy path_sumber path_tujuan');
...
more 15 years ago
arjuna_1982
THE BEST DELPHI
SEMANGAT... membangun indonesia
SEMANGAT... generasi muda
smua butuh proses untuk belajar menjadi lebih baik :wink: 8)
more 15 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
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
- inventory
by dinox in OOT more 17 years ago - Salam Kenal Unutk Semuanya
by armanefendi in Enginering more 18 years ago - tombol tab...?
by aireda in Tip n Trik Pemrograman more 18 years ago - Maaf, melenceng dr Delphi - ada yg bisa Excel???
by ichan29 in OOT more 16 years ago - nanya.....tentang metode search engine
by diah in Tutorial & Community Project more 17 years ago - [ASK] error saat coba send email dengan Indy SMTP
by shindo in Hal umum tentang Pascal Indonesia more 16 years ago - Logic data untu penanganan inventory manufaktur
by grounders in Enginering more 18 years ago - Crop Image dari Background.....
by RoenZ in Enginering more 17 years ago - gmn cara bikin autonumber tanpa bikin table baru ??
by goodday in Tip n Trik Pemrograman more 18 years ago - zeos connection u fastreport
by jonathan_giuliano in Reporting more 15 years ago