From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8355 invoked by alias); 2 Mar 2002 10:26:54 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Received: (qmail 8304 invoked from network); 2 Mar 2002 10:26:50 -0000 Received: from unknown (HELO mail.treyarch.com) (66.153.56.195) by sources.redhat.com with SMTP; 2 Mar 2002 10:26:50 -0000 Received: (qmail 14078 invoked from network); 2 Mar 2002 10:26:49 -0000 Received: from wade.treyarch.com (172.17.2.90) by misato.treyarch.com with SMTP; 2 Mar 2002 10:26:49 -0000 Date: Sat, 02 Mar 2002 02:26:00 -0000 From: Wade Brainerd X-Mailer: The Bat! (v1.53d) Reply-To: Wade Brainerd Organization: Treyarch Inc X-Priority: 3 (Normal) Message-ID: <14493710187.20020302022649@wadeb.com> To: cygwin@cygwin.com Subject: changing the working directory from a c program MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2002-03/txt/msg00073.txt.bz2 Hi all, I'm aware that this is a troublesome issue and hard to do on all platorms (Win32, various Unix's) but I'm asking anyway :) Under Cygwin, is there any way for a C program to change the current working directory of the shell that executed it? My best bet so far is to wrap the C program in a script. Thanks, Wade Brainerd www.wadeb.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/