codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Getting a value from an Access Database and converting it to a string  Archive Import (James Baker) at 06:17 on Thursday, July 24, 2003
 

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









CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
//








Recent Forum Threads
•  Job @ EarlySail
•  Job @ EarlySail (perl)
•  Security - Code verify
•  IPC problem
•  Re: import contacts of msn/yahoo
•  Cookies and Threads C++
•  right justify a background in a table?
•  Help with Loop (C++/MFC)
•  Help with Loop (C++/MFC)


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2007