|
-
Mar 29th, 2005, 12:01 AM
#1
Thread Starter
Admodistrator
Ping?
How do you ping in vb? Like i want to ping a user to see if that user is still using the .exe..is it possible?
-
Mar 29th, 2005, 12:06 AM
#2
Re: Ping?
You can use WindSock to do a ping. Check out the FAQ in the Network Programming Forum for some examples.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Mar 29th, 2005, 12:06 AM
#3
Re: Ping?
You can shell the Ping, or a better way is this. There is a module available on planetsourcecode.com which will allow you to ping a certain IP or domain
-
Mar 29th, 2005, 12:13 AM
#4
Thread Starter
Admodistrator
Re: Ping?
i cant find that code, what did you search for to find it? Rob, ill search your solution. Just a question, if you were to ping numerous people, would it lag?
-
Mar 29th, 2005, 12:16 AM
#5
Thread Starter
Admodistrator
Re: Ping?
better yet, how would i tell who else is using the .exe? Is there a way to search or something?
-
Mar 29th, 2005, 12:16 AM
#6
Re: Ping?
Try this. I think RD showed me how to do it...
VB Code:
Private Sub Form_Load()
Shell ("C:\Windows\System32\CMD.exe /k ping 192.168.1.100 >> C:\temp\ping.txt"), vbNormalFocus
End Sub
I was messing around with shellexecute before i remembered i had this.
-
Mar 29th, 2005, 12:17 AM
#7
Re: Ping?
I think it may be easier to have the program send you something that it is being run? This will eliminate needing to
determine who to ping and when.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Mar 29th, 2005, 12:25 AM
#8
Thread Starter
Admodistrator
Re: Ping?
well, im making kind of a serverbrowser for a game, and if the server is running the .exe, it will broadcast the info to the client, ..who will see it in a textbox, i can figure that out later though...If the .exe isnt run it wont show up...Any ideas? Obviously itd be a different .exe for servers and clients....?
-
Mar 29th, 2005, 12:30 AM
#9
Re: Ping?
Then you need to set up your server exe to be able to know which ports to listen for client
connections and visa versa. Use a standard port for initial setup and give the ability to change it if its already being
used by another program.
This is similar to SQL SErver using port 1433 as a default. The client Enterprise Manager application registers
a SQL Server through this port so when the client EM registers a client connection it will use 1433.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Mar 29th, 2005, 12:49 AM
#10
Thread Starter
Admodistrator
Re: Ping?
thats fine, but how will the .exe find the other .exe? thats how im confused..It needs to connect to every server.exe out there (once i make it) and then put them in a listbox
-
Mar 29th, 2005, 12:54 AM
#11
Re: Ping?
Thats the $64k question. This is about as far as I can help you but Pino is great at Windsock and I'm sure
he can help more. Did you check out the Network programming faq?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Mar 29th, 2005, 01:01 AM
#12
Thread Starter
Admodistrator
Re: Ping?
not yet, i forgot
-
Mar 29th, 2005, 10:47 AM
#13
-
Mar 29th, 2005, 12:01 PM
#14
Need-a-life Member
-
Mar 29th, 2005, 12:03 PM
#15
Need-a-life Member
Re: Ping?
 Originally Posted by Mc Brain
This is a code I've downloaded some time ago...
After seing baja_yu's links... I think that's the place where I downloaded it.
Emiliano F. Martín
If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
Encourage the person who helped you to keep doing it, and give him the points he deserves.
MP3 Organizer: Freeware to logically organize all your MP3s.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|