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: Lennart Borgman (gmail)
Subject: Re: Script for running win com prompt?
Date: Sun, 06 Jul 2008 18:51:59 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666

weber wrote:
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

There is also code for this and similar things in EmacsW32+Emacs. The functions for this are added to the Tools menu in Emacs.




reply via email to

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