Function: eshell-invoke-batch-file

eshell-invoke-batch-file is a byte-compiled function defined in esh-ext.el.gz.

Signature

(eshell-invoke-batch-file &rest ARGS)

Documentation

Invoke a .BAT or .CMD file on MS-DOS/MS-Windows systems.

Source Code

;; Defined in /usr/src/emacs/lisp/eshell/esh-ext.el.gz
(defsubst eshell-invoke-batch-file (&rest args)
  "Invoke a .BAT or .CMD file on MS-DOS/MS-Windows systems."
  ;; since CMD.EXE can't handle forward slashes in the initial
  ;; argument...
  (setcar args (subst-char-in-string ?/ ?\\ (car args)))
  (throw 'eshell-replace-command
	 (eshell-parse-command
	  (eshell-quote-argument eshell-windows-shell-file)
	  (cons "/c" args))))