From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Will Newsgroups: gmane.emacs.help Subject: Re: Start windows applications (.exe, .bat) from .emacs Date: Mon, 28 May 2007 16:01:37 +0200 Message-ID: <5c05lgF2th359U1@mid.individual.net> References: <5bo120F2shbi2U1@mid.individual.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1180363237 31923 80.91.229.12 (28 May 2007 14:40:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 28 May 2007 14:40:37 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 28 16:40:36 2007 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 1HsgOi-0001Ix-D3 for geh-help-gnu-emacs@m.gmane.org; Mon, 28 May 2007 16:40:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HsgOh-0005ll-S2 for geh-help-gnu-emacs@m.gmane.org; Mon, 28 May 2007 10:40:35 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 43 Original-X-Trace: individual.net 0Q0lk3zguTA0sVx8NM9xDwKIZE+EzYWBH+CANY7X2W9ygm6FLq User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) In-Reply-To: <5bo120F2shbi2U1@mid.individual.net> Original-Xref: shelby.stanford.edu gnu.emacs.help:148920 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:44509 Archived-At: Hi! Thanks for the comments sofar. However this command does not execute the batch file: (w32-shell-execute "open" "z:\00_Preferences\Emacs\emacsW32.bat") ----emacsW32.bat------- ECHO "Emacs - Win32 Batch Execution File " SET PATH=%PATH%; C:\Program Files\Adobe\Acrobat 7.0\Acrobat; C:\Program Files\Ghostgum\gsview;C:\Program Files\gs\gs8.56\bin;C:\Program Files\Mozilla_Firefox;C:\Program Files\SAS\SAS 9.1;C:\Program Files\Tinn-R\bin start thunderbird.exe start firefox.exe start explorer.exe ----emacsW32.bat------- On the other side, I can start the batch file with C-x d RET ! when I am in dired. What do I do wrong? Thanks for advice, Will Will skrev: > Hi, there! > > I'd like to start some windows applications which constitute my working > environment (e.g. firefox.exe or mysettings.bat) when I start emacs. > How can I do that using the regular MS Windows CMD-shell? > Is there also a way to set MS Windows environment variables in your > .emacs or the called .bat file? > > Thanks for your help in advance, > > Will