944,082 Members | Top Members by Rank

Ad:
Sep 14th, 2004
0

"HELP" RUNNING MSDOS COMMAND ON VB

Expand Post »
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?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Ivan Ruiz is offline Offline
1 posts
since Sep 2004
Sep 19th, 2004
0

Re: "HELP" RUNNING MSDOS COMMAND ON VB

Quote 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.
Reputation Points: 11
Solved Threads: 0
Light Poster
Buff is offline Offline
40 posts
since May 2004
Sep 19th, 2004
0

Re: "HELP" RUNNING MSDOS COMMAND ON VB

Actually, if your using VB6, I'm pretty sure you could just do Shell("C:\path\to\ping.ext localhost")
Moderator
Reputation Points: 322
Solved Threads: 28
The C# Man, Myth, Legend
Tekmaven is offline Offline
914 posts
since Feb 2002
Oct 1st, 2004
0

Re: "HELP" RUNNING MSDOS COMMAND ON VB

Hi, all

Have you ever try it with windows api.

Regard

Hok Sun

Hoksun13@hotmail.com
Reputation Points: 10
Solved Threads: 0
Newbie Poster
HokSun is offline Offline
1 posts
since Jun 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Runtime Error 424 object required (was: Please Help!)
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: printing an access table in VB6





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC