Hello everyone,
I have searched a lot in the web for the solution but I cannot find it. The issue is this: I need to open or run a batch or txt file from VB.
The code I have is this:
Sub Example()
Dim RetVal
RutaCompleta = Ruta & "\" & "texto.txt"
RetVal = Shell("C:\BatchFile.txt")
End Sub
But when I execute the code appears a window message with "error '5' in time of execution"...
I don't know what I am doing wrong...
Thanks in advance...
I have searched a lot in the web for the solution but I cannot find it. The issue is this: I need to open or run a batch or txt file from VB.
The code I have is this:
Sub Example()
Dim RetVal
RutaCompleta = Ruta & "\" & "texto.txt"
RetVal = Shell("C:\BatchFile.txt")
End Sub
But when I execute the code appears a window message with "error '5' in time of execution"...
I don't know what I am doing wrong...
Thanks in advance...