nano>
Mon Aug 20 15:10:02 CDT 2007
Hi Dave
You can use ICMP api or raw socket for VsNet 2003 ping function
http://www.pinvoke.net/default.aspx/icmp/IcmpSendEcho.html
nano
"Patrice" <
http://www.chez.com/scribe/> wrote in message
news:u5EmTez4HHA.5360@TK2MSFTNGP03.phx.gbl...
> Then convert now in 1.1. If I remember the ping class is not available in
> 1.1. You'll have to use either the command line ping utility or the
> corresponding interop call to do that.
>
> You may want also to explain what you are trying to do (for example
> tomorrow your admin guy could decide that a particular server shouldn't
> anymore respond to ping requests...).
>
> ---
> Patrice
>
> "Dave Marden" <DaveMarden@discussions.microsoft.com> a écrit dans le
> message de news: 5DCC8A26-70BB-4C11-8C82-5312B523AC84@microsoft.com...
>> Is there a good method of converting this program over to .net 1.1.4322 ?
>> Also does anyone have a function that will ping a machine and the return
>> a
>> string once the ping has completed, as it is I have to use the
>> Ping.Completed
>> action which makes makes my code kind of messy, I really wish I could
>> just
>> put in something like:
>>
>> If RequestPing(strIPAddress) = "Success" Then
>> 'Do Work
>> End If
>>
>> I think that you would need to have a pause in the function and have it
>> wait
>> for the Ping.Completed action to complete, which I have tried
>> unsuccessfully.
>> I searched on the internet but haven't found anything. I am pinging
>> several
>> pc's and I don't want to have to use the Ping.Complete action to
>> utlimately
>> trigger the next Ping.
>>
>> Due to my work not having .net 2.0 I would need this function to work in
>> .net 2002 as I don't have .net 2003.
>>
>> Thanks In Advance,
>> Dave Marden
>>
>> "Patrice" wrote:
>>
>>> Well you could talk with your admin guys to ask tham what is the
>>> configuration they are deploying in your company and perhaps even ask
>>> them
>>> if they could include .NET 2.0...
>>>
>>> Armed with this knowledge you can then start your development effort...
>>>
>>>
>>> --
>>> Patrice
>>>
>>> "Dave Marden" <DaveMarden@discussions.microsoft.com> a écrit dans le
>>> message
>>> de news: 9D62724D-41ED-43A5-95BD-3255F9BD1269@microsoft.com...
>>> >I need to know how to map a network drive using Visual Basic 2005, when
>>> >the
>>> > users pc doesn't have .Net Framework 2.0. My workplace only gives us
>>> > user
>>> > profiles so I can't install framework 2.0. They do allow us to run
>>> > vbscript
>>> > and .exe fles. however some app's can't be installed such as framework
>>> > 2.0.
>>> > Please let me know what other avenues I have.
>>> >
>>> > I created this program in Visual Basic 2005, and I now notice that I
>>> > have
>>> > this problem, do I have to start again in Visual Basic 2003, or can I
>>> > set
>>> > vb2005 to create a program based on the .net 1.14322 framework?
>>> >
>>> > Dave Marden
>>> >
>>>
>>>
>>>
>
>