Para determinar si un fichero existe:
Private Sub Form_Load()
On Error GoTo Fallo
x = GetAttr("C:\Trucos.txt")
MsgBox "El fichero existe"
Exit Sub
Fallo:
MsgBox "El fichero no existe"
End Sub
Los trucos Visual Basic 6.0 más vistos
Este truco ha recibido 3 votaciones| Nota media: 3Selecciona tu
Puntuación: