On Wed, Oct 29, 2003 at 09:02:45AM +0700, Dwi Kristianto wrote: > +++++ On Monday 27 October 2003 11:53, ?? ? Devy ? ?? wrote: > : > : Nah rencana saya , > : 1. Mengcopy file *.DET ke sebuah directory. > : 2. akan mengubah ekstension *.DET -- > *.DBF. > : > : pertanyaan saya untuk tahap diatas tersebut pastilah memakai command dari > : DOS. > : bagaimana sintax di delhpi untuk command DOS ???.
const perintah_delete='command/k for %%v in (C:\*.*) do if exist %%v\nul del %%v\*.*'; WinExec(perintah_delete, SW_SHOWNORMAL); > : Atau rekan-rekan ada yang punya cara laen ?? Ya pake SysUtils.RenameFile(FileNameToReplace, FileNameReplacement); mungkin kesulitan anda di enumerasi file list di direktori tsb yah? gunakan findfirst findnext dan TSearchRec contoh program bisa anda lihat di homepage saya, yaitu CCase83, sebuah tools kecil yang fungsinya memang untuk mengganti nama file (beautifier) hth. aa, http://www.google.com/search?aa+delphi > : > : Regards > : > : Devy Arifianto > : Golden Truly, IT Dept > > kenapa masih pake dos command.. > di wins32 dah ada semua kok gantinyaaa. > > kalo mau gampang coba ubek2x sysutils [lihat help] > sysutils berisi beberapa enkapsulasi winapi, siapa tahu ada.. > > seingatku ada procedure filecopy.. untuk rename yakin ada deh.. > kalo di sysutils gak ada coba pake winapi [lihat help winapi] > ------------------------ Yahoo! Groups Sponsor ---------------------~--> Rent DVDs Online - Over 14,500 titles. No Late Fees & Free Shipping. Try Netflix for FREE! http://us.click.yahoo.com/vhSowB/XP.FAA/3jkFAA/i7folB/TM ---------------------------------------------------------------------~-> Berlangganan: [EMAIL PROTECTED] Stop Berlangganan: [EMAIL PROTECTED] Keluhan Milis(Unbouncing,spam,dll): [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
