X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Message-ID: Date: Fri, 25 Jan 2008 17:52:50 +0100 From: "Mirco Piccin" To: cygwin AT cygwin DOT com Subject: Re: Cygwin - batch file In-Reply-To: <15091210.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <15088393 DOT post AT talk DOT nabble DOT com> <15089652 DOT post AT talk DOT nabble DOT com> <15091210 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 Hi > my start.bat is in the folder C:\batch ok > when i call start.bat , cygwin automatically goes into the folder > C:\Documents and Settings\user . cygwin goes there because that is your home folder. > so myscript.ksh file must be in C:\Documents and Settings\user. > i want to have myscript.ksh file in the C:\batch folder! > do u understand what i mean? now perfectly :-D You can do simply: C: chdir C:\cygwin\bin bash --login -c '/cygdrive/c/batch./myscript.ksh' or as Larry recommend. I sincerely prefer to use the "--login" option, but with this option cygwin (linux) chdir to your home directory, of course. Regards M -- 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/