techsupport3977
Technical User
I need to know if I am on the right path to extracting data from this code.
I was guided to create the code below, but I am a novice poweruser that is eager to get this done. I need to ping a computer, write the text file and then open the text file, read the text file and insert the data into a table in access.
I was guided to create the code below, but I am a novice poweruser that is eager to get this done. I need to ping a computer, write the text file and then open the text file, read the text file and insert the data into a table in access.
Code:
Private Sub Form_Open(Cancel As Integer)
'Ping a computer and save it to a text file
Shell "cmd.exe /c ping XX.XX.XX.XX > c:\temp\ping\extruder_e.txt"
'Open the file for data extraction
Dim myString As String
Dim strArray() As String
Open "c:\temp\ping\extruder_e.txt" For Input As #1
strArray = Split(Input(LOF(1), 1), vbCrLf)
Close #1
End Sub