Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Message-ID: <90f6e8270505140524314bf23b@mail.gmail.com> Date: Sat, 14 May 2005 14:24:32 +0200 From: Natxo Asenjo Reply-To: Natxo Asenjo To: cygwin AT cygwin DOT com Subject: date.exe problem Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j4ECOgof017550 Hi, I would like to use the cygwin tools in batch files, to extend the poor shell windows has. My shell is cmd.exe for xp pro. Ok. One thing that is not working as should is 'date'. As I understand from the faq, one can use full paths to executables in cmd.exe, that works fine interactively. Now the problem is this. I declare a %hour% variable in a batch file set hour=c:\cygwin\bin\date.exe if I then do: %date% +%H-%M that works as expected (interactively). But, if I use that in the batch file, then it gives me "H" instead of the hour. It ommits the '%' , does not interpret it and does not work. I am not sure if this is a dos problem (my understanding of this is not very good, I am afraid). Thanks in advance, N.Asenjo -- 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/