atau bisa juga pakai run dan tunggu prosesnya selesai, supaya lebih aman
OleObject wsh
integer li_rc
CONSTANT integer MAXIMIZED = 3
CONSTANT integer MINIMIZED = 2
CONSTANT integer NORMAL = 1
CONSTANT boolean WAIT = TRUE
CONSTANT boolean NOWAIT = FALSE
wsh = CREATE OleObject
li_rc = wsh.ConnectToNewObject( "WScript.Shell" )
li_rc = wsh.Run("Notepad" , NORMAL, WAIT)
messagebox("hello", "world")
lebih jelasnya bisa dilihat di link ini
http://www.rgagnon.com/pbdetails/pb-0151.html
2010/7/27 Fajar Rahmadhani <[email protected]>
>
>
> coba jalankan di CMD contoh :
> xcopy C:\WINDOWS D:\WINDOWS\ /E /C /H /O /Y
>
> trus di PB gunakan fungsi RUN
> contoh di PB :
> run("xcopy C:\WINDOWS D:\WINDOWS\ /E /C /H /O /Y")
>
>
> ------------------------------
> Fajar Rahmadhani
> YM : fjr_mail
> Personal Email : [email protected]; [email protected]
> Office Email : [email protected]
> Office Website : fstudio.web.id (software murah berkualitas)
> Facebook : Fajar Rahmadhani ([email protected])
> Phone : +6281346333226
>
>
>
> --- Pada *Sel, 27/7/10, harry hartono <[email protected]>* menulis:
>
>
> Dari: harry hartono <[email protected]>
> Judul: Re: Bls: [indopb] tanya cara copy file
> Kepada: [email protected]
> Tanggal: Selasa, 27 Juli, 2010, 4:47 PM
>
>
>
>
> bung fajar, contoh sintaxnya bisa di kasih tau.
>
> --- On *Mon, 7/26/10, Fajar Rahmadhani <fjr_m...@yahoo. co.id>* wrote:
>
>
> From: Fajar Rahmadhani <fjr_m...@yahoo. co.id>
> Subject: Bls: [indopb] tanya cara copy file
> To: ind...@yahoogroups. com
> Date: Monday, July 26, 2010, 12:19 AM
>
>
>
> gunakan xcopy
> coba ja help di cmd
>
> ------------------------------
> Fajar Rahmadhani
> YM : fjr_mail
> Personal Email : fjr_m...@yahoo. co.id; suratfajarr@ gmail.com
> Office Email : ad...@fstudio. web.id
> Office Website : fstudio.web. id (software murah berkualitas)
> Facebook : Fajar Rahmadhani (fjr_m...@yahoo. co.id)
> Phone : +6281346333226
>
>
>
> --- Pada *Sen, 26/7/10, harry hartono <harry_...@yahoo. com>* menulis:
>
>
> Dari: harry hartono <harry_...@yahoo. com>
> Judul: [indopb] tanya cara copy file
> Kepada: ind...@yahoogroups. com
> Tanggal: Senin, 26 Juli, 2010, 7:57 AM
>
>
>
> dear pbers,
>
> saya lagi kesulitan ni di sintax pb. bagaimana cara mengcopy bbrp file dari
> 1 folder ke folder yg lain.
>
>
>
>
>
>