> in cygwin scripts

I'm using cygwin under WinXP.
When I write things like ls > list.txt in shell, it works OK.
But when I place it to file like this:

It says that "list.txt" doesn't exists.
I tried touch, but the answer is the same.

Can you paste the commands from your Cygwin window over here ?
Is the Path variable set correctly ?

tyler_durden

Yes, Path is set correctly.
It works OK in cygwin windiow.