Function: ido-unc-hosts-net-view
ido-unc-hosts-net-view is a byte-compiled function defined in
ido.el.gz.
Signature
(ido-unc-hosts-net-view)
Documentation
Query network for list of UNC host names using NET VIEW.
Source Code
;; Defined in /usr/src/emacs/lisp/ido.el.gz
(defun ido-unc-hosts-net-view ()
"Query network for list of UNC host names using `NET VIEW'."
(let (hosts)
(with-temp-buffer
(shell-command "net view" t)
(goto-char (point-min))
(while (re-search-forward "^\\\\\\\\\\([[:graph:]]+\\)" nil t)
(setq hosts (cons (match-string 1) hosts))))
hosts))