delorie.com/archives/browse.cgi | search |
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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |