delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Message-ID: | <4232369B.3937ED46@dessent.net> |
Date: | Fri, 11 Mar 2005 16:23:55 -0800 |
From: | Brian Dessent <brian AT dessent DOT net> |
Organization: | My own little world... |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: cygpath only works if the path presently exists |
References: | <B744015F9200AA49B4E03549EED88B98A8E7D2 AT SCHMLVEM01 DOT e2k DOT ad DOT ge DOT com> |
X-IsSubscribed: | yes |
Reply-To: | cygwin AT cygwin DOT com |
"Wheeler, Frederick W (Research)" wrote: > My real concern is converting this //nsk1prn02/c304_p to this \\nsk1prn02\c304_p. This is a valid win2k printer path that I could pass to /cygdrive/c/WINNT/system32/print using the /D: option, but cygpath won't convert it. I don't know if this helps in your situation but if you just want to convert slashes you can use something like: $ echo //nsk1prn02/c304_p | sed -e 's,/,\\,g' \\nsk1prn02\c304_p or perhaps something like print /d:`echo $PRINTER | sed -e 's,/,\\,g'` `cygpath -w "$FILENAME"` Brian -- 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 |