Run a window cmd ping from a macro

I know we have the Shell the command:

Shell (Pathname As String[, Windowstyle As Integer][, Param As String][, bSync])

But I don’t want to use a .bat file, but just do a ping. In excel I could do:

command = "ping"

Shell(command, vbNormalFocus)

But I cannot seem to get it to work in libreoffice. I’ve review the openoffice sites, here and some documentations on basic, but I cannot seem to find out how. I keep getting syntax errors.

The help site has some examples, but they are exe or bat files.

This helped though. Thanks.

Should work so Shell("cmd", 1, "/K ping", False)