From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: poti@potis.org Newsgroups: gmane.emacs.help Subject: Re: Windows XP: Set PATH Variable by Script/Batch Date: Wed, 6 Jun 2007 13:02:10 -0400 Message-ID: <20070606170210.GA12990@mail.potis.org> References: <5co1srF3283cpU1@mid.individual.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1181149480 12853 80.91.229.12 (6 Jun 2007 17:04:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 6 Jun 2007 17:04:40 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 06 19:04:38 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 1Hvyw1-0000HQ-JD for geh-help-gnu-emacs@m.gmane.org; Wed, 06 Jun 2007 19:04:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hvyw0-0004XV-Up for geh-help-gnu-emacs@m.gmane.org; Wed, 06 Jun 2007 13:04:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hvyup-0003Mw-TN for help-gnu-emacs@gnu.org; Wed, 06 Jun 2007 13:03:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hvyuo-0003LP-7t for help-gnu-emacs@gnu.org; Wed, 06 Jun 2007 13:03:23 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hvyuo-0003L7-38 for help-gnu-emacs@gnu.org; Wed, 06 Jun 2007 13:03:22 -0400 Original-Received: from sitemail2.everyone.net ([216.200.145.36] helo=omta09.mta.everyone.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hvyun-0006eb-HF for help-gnu-emacs@gnu.org; Wed, 06 Jun 2007 13:03:21 -0400 Original-Received: from pop16.mta.everyone.net (bigiplb-dsnat [172.16.0.19]) by omta09.mta.everyone.net (Postfix) with ESMTP id 2F13F40B90 for ; Wed, 6 Jun 2007 10:03:20 -0700 (PDT) X-Eon-Dm: pop16 Original-Received: by pop16.mta.everyone.net (EON-AUTHRELAY2 - 48f102f2) id pop16.465dfe42.14cd07 for ; Wed, 6 Jun 2007 10:03:19 -0700 X-Eon-Sig: AQLTeK1GZujXrHOJQQIAAAAB,a0e5c6597fe5ee7999560f4de08ce7b2 Original-Received: by potis.org (nbSMTP-1.00) for uid 1000 poti@potis.org; Wed, 6 Jun 2007 13:02:11 -0400 (EDT) Content-Disposition: inline In-Reply-To: <5co1srF3283cpU1@mid.individual.net> User-Agent: Mutt/1.5.13 (2006-08-11) X-detected-kernel: Linux 2.4-2.6 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:44715 Archived-At: On 17:24 Wed 06 Jun , Will wrote: > Hallo, > > is there a way to set the PATH Variable under MS Windows XP > automatically by a script/batch file (cf. autoexec.bat in Win98) to > avoiding using the Graphical User Interface (My Computer > Properties > > Advanced > Environment Variables > ...)? > > Thanks for helping in advance, > > Will In Emacs, you can use getenv and setenv. There are ways to do this with VB scripts too. See Siep Kroonenberg's site on portable TeX Live (http://tex.aanhet.net/portable/ ) for the Windows way and my site ( http://potis.org/software/livedvd/ ) for an elisp way. The problem of setting PATH had to be addressed to make those projects work.