PARTNER

Minggu, 20 Juni 2010

How do I create a folder in VB if it doesn’t exist ?

Private Sub Command1_Click()

On Error GoTo thiserror
MkDir ("c:\MyFolder\")
Exit Sub
thiserror:
If Err.Number = 75 Then MsgBox "folder already exist", vbExclamation

End Sub
Share:

0 komentar:

Posting Komentar

Blog Archive

Blogger templates