X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Message-ID: Date: Fri, 6 Jun 2008 02:22:40 +0100 From: "Adam Thompson" To: cygwin AT cygwin DOT com Subject: Re: how can I stop Windows setting HOME? In-Reply-To: <17682731.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <17682731 DOT post AT talk DOT nabble DOT com> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 2008/6/6 anadem : > > Each time I boot my pc Windows sets the HOME environment variable to my > "Documents and Settings" directory, which screws up cygwin. Before I can use > cygwin I have to do the My Computer/Properties/Advanced ... etc stuff and > delete HOME from my User variables. Otherwise cygwin sets my $HOME to > Window's idea of HOME, which is a pain in the neck. > > Is there any way to permanently unset the HOME env-var in Windows? I could > run a batch file at startup but afaik that would not be a systemwide removal > of HOME. > I don't think XP sets a var called HOME by default. It sets HOMEPATH and HOMEDRIVE - and in some cases HOMESHARE. Have you checked autoexec.nt? C:\Documents and Settings\adamt.MDHLP83>echo %HOME% %HOME% C:\Documents and Settings\adamt.MDHLP83>echo %HOMEPATH% \Documents and Settings\adamt.MDHLP83 C:\Documents and Settings\adamt.MDHLP83>echo %HOMEDRIVE% C: I've looked in my environment variables in the system properties and can't find anything called HOME. I also tried: C:\Documents and Settings\adamt.MDHLP83>set | findstr HOME HOMEDRIVE=C: HOMEPATH=\Documents and Settings\adamt.MDHLP83 C:\Documents and Settings\adamt.GLENTURRET>cd home The system cannot find the path specified. I do not think this is a Windows issue. -- AdamT "At times one remains faithful to a cause only because its opponents do not cease to be insipid." - Nietzsche -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/