How to ping a computer if the computer name starts with dash "-"
On *nix, use a "--" to allow an argument beginning with a dash:
ping -- -funkyhost
(This probably won't help on Windows, though, because Windows command-line parsing is kind of rudimentary)
On another side note, well-formed DNS names are not allowed to start with a hyphen.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With