Sorry but my english is quite poor, so i don't understand well your question. So, correct me if i'm going wrong.
> it works perfect, but i have to give the cygwin script under C:\Documents > and Settings\user myscript.ksh! > > how can i make it to have a directory, for eg C:\mybatchconversion where all > files are there? You want to run with cygwin a .ksh file stored in "C:\Documents and Settings\user" ? Well, in cygwin the system drive are mapped in this way : $ mount C:\cygwin\bin on /usr/bin type system (binmode) C:\cygwin\lib on /usr/lib type system (binmode) C:\cygwin on / type system (binmode) c: on /cygdrive/c type system (binmode,noumount) ...so i can do: $ cd /cygdrive/c/Documents\ and\ Settings/<user>/ ...to switch to Win <user> home directory. I recommend to soft link your Windows home directory (C:\Documents and Settings\<user>) to the linux home folder (/home/<user>) in this way: $ mv /home/<user>/ /home/<user>.old/ (move the original folder to another) $ ln -s /cygdrive/c/Documents and Settings/<user> /home/<user> (link the Win home dir to cygwin linux home dir) $ cp -R /home/<user>.old/ * /home/<user>/. (right to have the .profile .bash* file) In this way, cd to /home/<user> and you will find yourself in your Win home dir. Of course, you can soft link any other path. Remeber only that the Windows C: drive in cygwin environment is /cygdrive/c/. So, coming back to our .bat file: .... bash --login -i -c '/cygdrive/c/Documents and Settings/<user>/script.ksh' ... -or, if you soft link Win home dir to /home/<user>: ... bash --login -i -c '/home/<user>/script.ksh' ... Hope i understand well :-D 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/