Alo Oppie  ini saya kasih contohnya  :

'--- Aktifkan Reference Microsoft Scripting Runtime
'--- Menu Project - References - Microsoft Scripting Runtime

Dim fs As New FileSystemObject

Private Sub Form_Load()
    Set fs = New FileSystemObject
     
   
    '--------Buat Folder --------------;
    fs.CreateFolder "c:\robin_sbr"
   
    '--------Copy File ---------;
    fs.CopyFile "c:\sumber.txt", "c:\tujuan.txt", True
   
    '------ Delete File-------;
    fs.DeleteFile "c:\delete.txt", True
   
   
    Set fs = Nothing
End Sub


Ato bisa juga dengan perintah standart nya VB   :

MkDir "c:\robin_sbr"                                      
..............: buat folder 
FileCopy "c:\sumber.txt", "c:\tujuan.txt"            ..............: 
copy file
Kill "c:\delete.txt"                                            
..............:  Delete file

Terima kasih , selamat mencoba dan modifikasi.
---
Robin'S





oppie.gunawan wrote:
>
> dear all,
>
> gimana caranya mo 'create folder' ato 'copy-paste' file ato 'delete'
> file by vb coding?
>
> gpp ya ptanyaan nya agak2 primitif gitu... :) :P
>
> thx all,
> .:: Oppie ::.
>
> 
> Messages in this topic 
> <http://groups.yahoo.com/group/Programmer-VB/message/26442;_ylc=X3oDMTM2c3JpaWcyBF9TAzk3MzU5NzE0BGdycElkAzgzMzIyNjUEZ3Jwc3BJZAMxNzA1MTE1MzY0BG1zZ0lkAzI2NDQyBHNlYwNmdHIEc2xrA3Z0cGMEc3RpbWUDMTE4MzM0MTk3NwR0cGNJZAMyNjQ0Mg-->
>  
> (1) 
> <http://groups.yahoo.com/group/Programmer-VB/post;_ylc=X3oDMTJxam4xcW0wBF9TAzk3MzU5NzE0BGdycElkAzgzMzIyNjUEZ3Jwc3BJZAMxNzA1MTE1MzY0BG1zZ0lkAzI2NDQyBHNlYwNmdHIEc2xrA3JwbHkEc3RpbWUDMTE4MzM0MTk3Nw--?act=reply&messageNum=26442>




Kirim email ke