|
Here is the problem. I have an access database I am creating that lsits server names. I am wanting to create buttons on the form that would allow you to ping the server currently listed. Now, I figured out how to get the button to allow me to call the ping.exe application. But now I need to figure out how to get the server_name field converted into a string/variable that I can add into the following command line "cmd.exe /c start ping -t". Now I am assuming that the variable can be added to stAppName = "cmd.exe /c start ping -t";servername$. Any help would be greatly appreciated.
Private Sub Ping_Button_Click()
On Error GoTo Err_Ping_Button_Click
Dim stAppName As String
stAppName = "cmd.exe /c start ping -t"
Call Shell(stAppName, 1)
Exit_Ping_Button_Click:
Exit Sub
Err_Ping_Button_Click:
MsgBox Err.Description
Resume Exit_Ping_Button_Click
|
|
|
|
|
|
|
// |