Memeriksa Kapasitas file di VB6

Memeriksa ukuran/kapasitas sebuah file :

Dim lSize As Long
Dim lSizeOnDisk As Long
Dim sPath As String

sPath = App.Path & “\Arman.exe”

lSize = GetFileSize(sPath)
lSizeOnDisk = GetSizeOnDisk(sPath)

labelku.Caption = sPath
If lSize <> 2008 Then
Dim Jawablah As Integer
Jawablah = MsgBox(“Arman.exe rusak/hilang/berubah ! program tidak bisa dilanjutkan …”, _
vbQuestion + vbYes, “Error!”)
Unload Me

End If

Categories: VB6 | Tinggalkan komentar

Navigasi pos

Tinggalkan Balasan

Please log in using one of these methods to post your comment:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

Buat situs web atau blog gratis di WordPress.com.

%d blogger menyukai ini: