| | |
"HELP" RUNNING MSDOS COMMAND ON VB
![]() |
•
•
Join Date: May 2004
Posts: 40
Reputation:
Solved Threads: 0
•
•
•
•
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?
Example:
Assume you have written or have a batch file.
use:
SHELL ENVIRON$("COMSPEC") + " /c " + batfilename$
Probably would work with commands too.
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.
.NET Specialist / Webmaster, Extended64.com.
Please do not email or PM me with support questions. Please direct them to the forums instead.
![]() |
Similar Threads
- Starting " C " (C)
- Ping, "request Timed Out" (IT Professionals' Lounge)
- Trojan Horse - HELP PLEASE (Viruses, Spyware and other Nasties)
- The "gets" command with Borland C++ (C++)
- google "keyword" question (Search Engine Optimization)
- "MiCr0s0ft.exe", "Microsoftx.exe" & "ns.exe" viruses?Please Help (Viruses, Spyware and other Nasties)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Runtime Error 424 object required (was: Please Help!)
- Next Thread: printing an access table in VB6
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age application basic beginner birth bmp calculator cd cells.find click client code college component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report save search sendbyte sites sort sql sql2008 sqlserver subroutine tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





