|
-
Feb 27th, 2006, 06:56 AM
#1
Thread Starter
Member
Need help with batch and networking
1. How do I get the cmd text into a textbox when executing a batch file?
2. How do I check if the computer is connected to the internet? I want an icon showing if the app is connected or not.
-
Feb 27th, 2006, 08:31 AM
#2
Re: Need help with batch and networking
1. Check the VB.NET CodeBank. Gigemboy (I believe) has posted an example of redirectling command window output.
-
Feb 27th, 2006, 08:38 AM
#3
Re: Need help with batch and networking
Check the link in my sig
Last edited by gigemboy; Feb 27th, 2006 at 08:50 AM.
-
Feb 27th, 2006, 08:41 AM
#4
Re: Need help with batch and networking
Don't listen to him. He's not the real gigemboy. It's just a phishing scam.
-
Feb 27th, 2006, 08:42 AM
#5
Thread Starter
Member
Re: Need help with batch and networking
Yes, that worked out fine with some minor tweaks.
And how do I check if the computer is connected to the internet?
-
Feb 27th, 2006, 08:48 AM
#6
Re: Need help with batch and networking
As for the network connection issue, there is a Win32_NetworkAdapter WMI class you can use to get the adapters, and check for the NetConnectionStatus property for the status of "Connected", however you would also have to check for connected modems as well, which im not too sure of... theres a link in my sig on a WMI example also... just throwing out the first thing that comes to mind....
Last edited by gigemboy; Feb 27th, 2006 at 08:54 AM.
-
Feb 27th, 2006, 06:24 PM
#7
Re: Need help with batch and networking
Doesn't Windows tell the user if it's connected or not? Also, if you're connected to the Internet via a network then all you can really say is whether you're connected to that network. Whether or not that network is connected to the Internet isn't really something that you can say without actually trying to access the Internet, as far as I'm aware.
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
|