Re: date.exe problem

2005-05-14 Thread Gerrit P. Haase
Natxo Asenjo wrote: 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 i

Re: date.exe problem

2005-05-14 Thread Brian Dessent
Natxo Asenjo wrote: > 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