Arsip: Copy otomatis kedalam folder yang dbuat secara otomatis

more 14 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 14 years ago
pebbie
lha.. itu kok 'd:\label1.caption\bootcopy.ini' ?
bukannya harusnya
'd:'+label1.caption+'\bootcopy.ini'

more 14 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 14 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 14 years ago
asiyrob
gimana klo gunakan xcopy
...
winexec ('xcopy path_sumber path_tujuan');
...

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

more 14 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 2 years ago - PascalTalk #5: UX: Research, Design and Engineer
by LuriDarmawan in Tutorial & Community Project more 2 years ago - PascalTalk #4: Obrolan Ringan Seputar IT
by LuriDarmawan in Tutorial & Community Project more 2 years ago - PascalTalk #2: Membuat Sendiri SMART HOME
by LuriDarmawan in Tutorial & Community Project more 2 years ago - PascalTalk #3: RADically Fast and Easy Mobile Apps Development with Delphi
by LuriDarmawan in Tutorial & Community Project more 2 years ago - PascalTalk #1: Pemanfaatan Artificial Intelligence di Masa Covid-19
by LuriDarmawan in Tutorial & Community Project more 2 years ago - Tempat Latihan Posting
by LuriDarmawan in OOT more 3 years ago - Archive
- Looping lagi...
by idhiel in Hal umum tentang Pascal Indonesia more 10 years ago - [ask] koneksi ke ODBC user Dsn saat runtime dengan ado
by halimanh in FireBird more 10 years ago - Validasi menggunakan data tanggal
by mas_kofa in Hal umum tentang Pascal Indonesia more 10 years ago
Random Topic
- tanya tentang penggunaan left join
by sky47 in MySQL more 13 years ago - Browse for folder
by AReeFDh in Network, Files, I/O & System more 14 years ago - Fuzzy C-Means
by noo_r1r1n in Hal umum tentang Pascal Indonesia more 11 years ago - Ukuran Buffer optimal untuk pemrosesan file > 50 MB
by pebbie in Tip n Trik Pemrograman more 14 years ago - begin-end
by kaito_kid in Tip n Trik Pemrograman more 13 years ago - Cara koneksi dari komputer ke client pake komponen zeos ???
by doditali in Network, Files, I/O & System more 16 years ago - Program memecah kata menjadi suku kata
by alfian in Tip n Trik Pemrograman more 17 years ago - Operasi aritmatik pada Edit untuk Form Penjualan...
by ii_irwan in Lain-lain more 13 years ago - dbGridku berkedip kayak lampu DISKO asikk eh salah Tolonggg!
by joudie in Hal umum tentang Pascal Indonesia more 14 years ago - test ping ip
by bodoh in Network, Files, I/O & System more 14 years ago