This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: Converting Dos Slashes to Unix Slashes
- From: "Hannu E K Nevalainen" <garbage_collector at telia dot com>
- To: <cygwin at cygwin dot com>
- Date: Sun, 14 Mar 2004 21:52:24 +0100
- Subject: RE: Converting Dos Slashes to Unix Slashes
> From: Igor Pechtchanski
> On Sun, 14 Mar 2004, zzapper wrote:
>
> > From
> > man cygpath
> >
> > Look at this generically useful script
> >
> > #!/bin/sh
> > # wexp
> > # description : Launch Explorer with correct "Windows" path
> > if [ "${1}" = "" ];
> > then
> > XPATH=".";
> > else
> > XPATH="$(cygpath -w "${1}")";
> > fi
> > explorer $XPATH &
> >
> > zzapper (vim & cygwin & zsh)
>
> Umm, why not simply use the script below? BTW, you don't need to put
> explorer in the background - detaches from the tty itself. Also, don't
> forget that there *are* command-line arguments for explorer, which you
> might want to pass through...
> Igor
>
> #!/bin/sh
> # wexp
> # description : Launch Explorer with correct "Windows" path
> explorer "$(cygpath -w "${1:-.}")"
Even simpler:
$ cygstart /
Click on "Folders" (equal to Menu->View->Explorer Bar->Folders)
/Hannu E K Nevalainen, B.Sc. EE - 59+16.37'N, 17+12.60'E
** on a mailing list; please keep replies on that particular list **
-- printf("LocalTime: UTC+%02d\n",(DST)? 2:1); --
--END OF MESSAGE--
--
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/