Hi Ferdinando,
I use a terminal command below is an example.
$count:=<>l_NumRipetizioniPing // total number of iterations to try (in
miliseconds)
If (Folder separator=":")
$wait:=<>l_NumRipetizioniPing // maximum time to wait for a response (in secs)
$file:="ping -c "+String($count)+" -t "+String($wait)+" "+$serverIP
Else
$wait:=50*<>l_NumRipetizioniPing // maximum time to wait for a response (in
miliseconds)
$file:="ping -n "+String($count)+" -w "+String($wait)+" "+$serverIP
SET ENVIRONMENT VARIABLE("_4D_OPTION_HIDE_CONSOLE";"true")
End if
$l_Conta:=0
Repeat
LAUNCH EXTERNAL PROCESS($file;$input;$output;$error)
$l_Conta:=1+$l_Conta
Until ((Position("TTL=";$output)>0) | ($l_Conta=<>l_NumPing))
I hope this can help you.
Andrea
> Il giorno 22 mar 2021, alle ore 14:58, stardata.info via 4D_Tech
> <[email protected]> ha scritto:
>
> Hi All,
>
> In one of my applications in 4D V16 on windows, I need to use network unity.
> Can happen that one of the network unity is unavailable, so when I call
> TEST PATHNAME command, the 4d application remains sometimes in a " not
> responding " state. I try to use Net_Ping command to check if the ip address
> of the pc that contains the folder that I have to need to reach is
> available, but in the manual, I read that this command works only with
> administrator user.
>
> Someone can give a suggestion to solve it?
>
> Thanks
> Ferdinando
>
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> New Forum: https://discuss.4D.com
> Archive: http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub: mailto:[email protected]
> **********************************************************************
**********************************************************************
4D Internet Users Group (4D iNUG)
New Forum: https://discuss.4D.com
Archive: http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:[email protected]
**********************************************************************