From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: weber Newsgroups: gmane.emacs.help Subject: Re: Script for running win com prompt? Date: Fri, 4 Jul 2008 07:27:53 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <6b0861d2-9f80-4192-a4f7-2137a916208f@79g2000hsk.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1215182450 11369 80.91.229.12 (4 Jul 2008 14:40:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Jul 2008 14:40:50 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 04 16:41:36 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KEmTZ-0003lX-SH for geh-help-gnu-emacs@m.gmane.org; Fri, 04 Jul 2008 16:41:30 +0200 Original-Received: from localhost ([127.0.0.1]:41955 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KEmSi-00073M-Ec for geh-help-gnu-emacs@m.gmane.org; Fri, 04 Jul 2008 10:40:36 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!m36g2000hse.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Original-NNTP-Posting-Host: 201.21.217.171 Original-X-Trace: posting.google.com 1215181673 30885 127.0.0.1 (4 Jul 2008 14:27:53 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 4 Jul 2008 14:27:53 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: m36g2000hse.googlegroups.com; posting-host=201.21.217.171; posting-account=7GrjgQoAAAD6slWURausdJnhFDkmQYC8 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9) Gecko/2008052906 Firefox/3.0,gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 stargate.datacom:3128 (squid/2.6.STABLE5) Original-Xref: news.stanford.edu gnu.emacs.help:159894 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:55242 Archived-At: On Jul 4, 10:18=A0am, ssecorp 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