help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Script for running win com prompt?


From: weber
Subject: Re: Script for running win com prompt?
Date: Fri, 4 Jul 2008 07:27:53 -0700 (PDT)
User-agent: G2/1.0

On Jul 4, 10:18 am, ssecorp <circularf...@gmail.com> wrote:
> i have a long command prompt script i dont want to enter manually.
>
> how can i write a script that runs:
> java -cp c:\clojure_20080612\clojure.jar clojure.lang.Script
> CelsiusConverter.clj
>
> froma certain directory and start that within emacs?

I have something like this to open explorer selecting the current file

(defun open-this-folder ()
  "Opens current buffer folder on explorer, with current file
selected"
  (interactive)
  (w32-shell-execute "open" "explorer" (concat (fix-slash default-
directory) " ,/select," (fix-slash (buffer-file-name)))))

You can adapt for you case.

HTH
weber


reply via email to

[Prev in Thread] Current Thread [Next in Thread]