Por Favor ayudenme
Publicado por Miguel (1 intervención) el 15/03/2008 17:14:20
Hola, saludos a todos, lo que necesito saber es como puedo hacer que al apretar un boton busque el archivo que yo quiera, salga la ruta y esa misma ruta al pinchar en otro boton se abra.
Dejo unos codigos, e estao tocando pero no encuentro la manera, por favor ayudenme, gracias.
Private Sub Form_Load()
ruta = App.Path & " 'coloca aqui la ruta"
End Sub
Private Sub Command1_Click()
Dim strValor As String
strValor = FindFile$(ruta$, "serial.txt")
If Not strValor = "" Then
MsgBox "ARCHIVO ENCONTRADO LA RUTA ES: " & Chr(13) & " " & strValor & " ", vbCritical, "Buscar"""
Else
MsgBox "NO SE ENCONTRO : " & strValor & " ", vbInformation, "Buscar"""
End If
End Sub
Sub Command2_Click()
Dim strValor As String
strValor = FindFile$(ruta$, "serial.txt")
If Not strValor = "" Then
End If
Dim Shell As String
Shell = Shell & Chr(13) & " " & strValor & " "
End Sub
Dejo unos codigos, e estao tocando pero no encuentro la manera, por favor ayudenme, gracias.
Private Sub Form_Load()
ruta = App.Path & " 'coloca aqui la ruta"
End Sub
Private Sub Command1_Click()
Dim strValor As String
strValor = FindFile$(ruta$, "serial.txt")
If Not strValor = "" Then
MsgBox "ARCHIVO ENCONTRADO LA RUTA ES: " & Chr(13) & " " & strValor & " ", vbCritical, "Buscar"""
Else
MsgBox "NO SE ENCONTRO : " & strValor & " ", vbInformation, "Buscar"""
End If
End Sub
Sub Command2_Click()
Dim strValor As String
strValor = FindFile$(ruta$, "serial.txt")
If Not strValor = "" Then
End If
Dim Shell As String
Shell = Shell & Chr(13) & " " & strValor & " "
End Sub
Valora esta pregunta


0