* Re: getting dos path from cygwin
@ 2002-04-10 8:25 Pavel Tsekov
2002-04-11 1:38 ` getting dos path from cygwin (programmatically) Andreas Ames
0 siblings, 1 reply; 6+ messages in thread
From: Pavel Tsekov @ 2002-04-10 8:25 UTC (permalink / raw)
To: ian reinhart geiser; +Cc: cygwin
Hello ian,
Wednesday, April 10, 2002, 2:25:02 PM, you wrote:
irg> I am trying to call link.exe on a lib, but it is in my cygwin path and i
irg> cannot seem to find a good way to translate my cygwin path into a dos path so
irg> ms's silly tools can understand it.
irg> any hints?
Yes! Use the cygpath.exe utility.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: getting dos path from cygwin (programmatically)
2002-04-10 8:25 getting dos path from cygwin Pavel Tsekov
@ 2002-04-11 1:38 ` Andreas Ames
2002-04-11 6:33 ` Corinna Vinschen
2002-04-11 6:34 ` Larry Hall (RFK Partners, Inc)
0 siblings, 2 replies; 6+ messages in thread
From: Andreas Ames @ 2002-04-11 1:38 UTC (permalink / raw)
To: Pavel Tsekov
Hi all,
Pavel Tsekov <ptsekov@syntrex.com> writes:
> Yes! Use the cygpath.exe utility.
I've got a related question: Is there an easy to use interface (say in
cygwin1.dll) to convert paths between cywin and windows conventions
programmatically i.e. directly callable from C-code? If so, which
header(s) do I need?
TIA
andreas
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: getting dos path from cygwin (programmatically)
2002-04-11 1:38 ` getting dos path from cygwin (programmatically) Andreas Ames
@ 2002-04-11 6:33 ` Corinna Vinschen
2002-04-11 6:34 ` Larry Hall (RFK Partners, Inc)
1 sibling, 0 replies; 6+ messages in thread
From: Corinna Vinschen @ 2002-04-11 6:33 UTC (permalink / raw)
To: cygwin
On Thu, Apr 11, 2002 at 09:46:30AM +0200, Andreas Ames wrote:
> Hi all,
>
> Pavel Tsekov <ptsekov@syntrex.com> writes:
>
> > Yes! Use the cygpath.exe utility.
>
> I've got a related question: Is there an easy to use interface (say in
> cygwin1.dll) to convert paths between cywin and windows conventions
> programmatically i.e. directly callable from C-code? If so, which
> header(s) do I need?
#include <sys/cygwin.h>
A look into that file gives you all you need. Please use the
"cygwin_XXX" functions rather than the "cygwin32_XXX" functions
which are deprecated.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@cygwin.com
Red Hat, Inc.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: getting dos path from cygwin (programmatically)
2002-04-11 1:38 ` getting dos path from cygwin (programmatically) Andreas Ames
2002-04-11 6:33 ` Corinna Vinschen
@ 2002-04-11 6:34 ` Larry Hall (RFK Partners, Inc)
1 sibling, 0 replies; 6+ messages in thread
From: Larry Hall (RFK Partners, Inc) @ 2002-04-11 6:34 UTC (permalink / raw)
To: Andreas Ames, Pavel Tsekov
At 03:46 AM 4/11/2002, Andreas Ames wrote:
>Hi all,
>
>Pavel Tsekov <ptsekov@syntrex.com> writes:
>
> > Yes! Use the cygpath.exe utility.
>
>I've got a related question: Is there an easy to use interface (say in
>cygwin1.dll) to convert paths between cywin and windows conventions
>programmatically i.e. directly callable from C-code? If so, which
>header(s) do I need?
Documentation is your friend! :-)
http://cygwin.com/cygwin-api/cygwin-api.html
Larry Hall lhall@rfk.com
RFK Partners, Inc. http://www.rfk.com
838 Washington Street (508) 893-9779 - RFK Office
Holliston, MA 01746 (508) 893-9889 - FAX
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: getting dos path from cygwin
[not found] <200204101226.g3ACQAe05183@star.vcsd.net>
@ 2002-04-10 5:55 ` Dwight Schauer
0 siblings, 0 replies; 6+ messages in thread
From: Dwight Schauer @ 2002-04-10 5:55 UTC (permalink / raw)
To: cygwin
Use cygpath.
cygpath --help
in your case:
some_dos_command  $(cygpath -w path_to_cygwin_file)
or
some_dos_command  $(cygpath -wa path_to_cygwin_file)
Â
The "a" option is to return the absolute path, and not the relative one.
On Wednesday 10 April 2002 07:25, you wrote:
>Â Greetings,
>Â I am trying to call link.exe on a lib, but it is in my cygwin path and i
>Â cannot seem to find a good way to translate my cygwin path into a dos path
>Â so ms's silly tools can understand it.
>
>Â any hints?
>
>Â thanks
>Â -ian reinhart geiser
>Â --
>Â Ian Geiser <geiseri@yahoo.com>
>Â http://geiseri.myip.org:8080/~geiseri/
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 6+ messages in thread
* getting dos path from cygwin
@ 2002-04-10 5:39 ian reinhart geiser
0 siblings, 0 replies; 6+ messages in thread
From: ian reinhart geiser @ 2002-04-10 5:39 UTC (permalink / raw)
To: cygwin
\r
Greetings,\r
I am trying to call link.exe on a lib, but it is in my cygwin path and i \r
cannot seem to find a good way to translate my cygwin path into a dos path so \r
ms's silly tools can understand it.\r
\r
any hints?\r
\r
thanks\r
-ian reinhart geiser\r
-- \r
Ian Geiser <geiseri@yahoo.com>\r
http://geiseri.myip.org:8080/~geiseri/\r
\r
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2002-04-11 13:33 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-10 8:25 getting dos path from cygwin Pavel Tsekov
2002-04-11 1:38 ` getting dos path from cygwin (programmatically) Andreas Ames
2002-04-11 6:33 ` Corinna Vinschen
2002-04-11 6:34 ` Larry Hall (RFK Partners, Inc)
[not found] <200204101226.g3ACQAe05183@star.vcsd.net>
2002-04-10 5:55 ` getting dos path from cygwin Dwight Schauer
-- strict thread matches above, loose matches on Subject: below --
2002-04-10 5:39 ian reinhart geiser
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).