RE: how to start windows applications
start is a builtin of cmd. try cygstart a.xls instead. matthias -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of thetrystero Sent: Wednesday, September 17, 2008 11:23 AM To: cygwin-xfree@cygwin.com Subject: how to start windows applications i've just installed cygwin and am noticing some inconsistencies between executing commands from the command line versus executing them through a batch file. for example when I try to do start excel a.xls I get bash: start: command not found but if I put this in a batch file, a.bat say, and the subsequently executing a.bat the the cmd line, it works fine. Another one is changing directories. Say I'm in C: and I'd like to change to U:\temp. The following sequence works in the batch file but not at the command line: U: cd \temp Any help will be much appreciated! -- View this message in context: http://www.nabble.com/how-to-start-windows-applications-tp19527789p19527 789.html Sent from the cygwin-xfree mailing list archive at Nabble.com. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: how to start windows applications
thetrystero wrote: i've just installed cygwin and am noticing some inconsistencies between executing commands from the command line versus executing them through a batch file. for example when I try to do start excel a.xls I get bash: start: command not found but if I put this in a batch file, a.bat say, and the subsequently executing a.bat the the cmd line, it works fine. Another one is changing directories. Say I'm in C: and I'd like to change to U:\temp. The following sequence works in the batch file but not at the command line: U: cd \temp Any help will be much appreciated! Cygwin is not DOS. That's really the crux of your problem. You've already been given one alternative way of doing what you want with start in a Cygwin/POSIX/Linux way. For the cd, cd /cygdrive/u/temp will do what you want. If you plan to use Cygwin tools and shells, you should try to work with the environment rather than against it. A read through the Cygwin User's Guide http://cygwin.com/cygwin-ug-net/ should help some. Linux/Unix guides and tutorials should help too. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 429-6305 - FAX Holliston, MA 01746 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/