how to start windows applications

Larry Hall (Cygwin X) reply-to-list-only-lh-x@cygwin.com
Wed Sep 17 16:53:00 GMT 2008


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/



More information about the Cygwin-xfree mailing list