"HELP" RUNNING MSDOS COMMAND ON VB

Reply

Join Date: Sep 2004
Posts: 1
Reputation: Ivan Ruiz is an unknown quantity at this point 
Solved Threads: 0
Ivan Ruiz Ivan Ruiz is offline Offline
Newbie Poster

"HELP" RUNNING MSDOS COMMAND ON VB

 
0
  #1
Sep 14th, 2004
I Am A Vb On Excell User, I Am Trying To Make A Macro In Visual Basic But I Do Not Know How To Run A Msdos Comand Over Vb
In Specific I Want To Excecute A "ping" Command Over A Macro That Help Me To Se If A Computer Is On Line And Record On A Excell Worksheet, â¿someone Can Help Me How To Do It?
Reply With Quote Quick reply to this message  
Join Date: May 2004
Posts: 40
Reputation: Buff is an unknown quantity at this point 
Solved Threads: 0
Buff Buff is offline Offline
Light Poster

Re: "HELP" RUNNING MSDOS COMMAND ON VB

 
0
  #2
Sep 19th, 2004
Originally Posted by Ivan Ruiz
I Am A Vb On Excell User, I Am Trying To Make A Macro In Visual Basic But I Do Not Know How To Run A Msdos Comand Over Vb
In Specific I Want To Excecute A "ping" Command Over A Macro That Help Me To Se If A Computer Is On Line And Record On A Excell Worksheet, ⿳omeone Can Help Me How To Do It?
Although I don't use VB but rather PowerBasic for windows, maybe this will be of some use (hopefully).

Example:
Assume you have written or have a batch file.
use:

SHELL ENVIRON$("COMSPEC") + " /c " + batfilename$

Probably would work with commands too.
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 898
Reputation: Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light 
Solved Threads: 26
Moderator
Tekmaven's Avatar
Tekmaven Tekmaven is offline Offline
The C# Man, Myth, Legend

Re: "HELP" RUNNING MSDOS COMMAND ON VB

 
0
  #3
Sep 19th, 2004
Actually, if your using VB6, I'm pretty sure you could just do Shell("C:\path\to\ping.ext localhost")
-Ryan Hoffman

.NET Specialist / Webmaster, Extended64.com.
Please do not email or PM me with support questions. Please direct them to the forums instead.
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 1
Reputation: HokSun is an unknown quantity at this point 
Solved Threads: 0
HokSun's Avatar
HokSun HokSun is offline Offline
Newbie Poster

Re: "HELP" RUNNING MSDOS COMMAND ON VB

 
0
  #4
Oct 1st, 2004
Hi, all

Have you ever try it with windows api.

Regard

Hok Sun

Hoksun13@hotmail.com
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC