| delorie.com/archives/browse.cgi | search |
| X-Spam-Check-By: | sourceware.org |
| To: | cygwin AT cygwin DOT com |
| From: | Kai Schlichting <Gayson AT web DOT de> |
| Subject: | Using test in Cygwin and Batch-File |
| Date: | Thu, 17 Aug 2006 00:45:40 +0200 |
| Lines: | 11 |
| Message-ID: | <ec076k$qkp$1@sea.gmane.org> |
| Mime-Version: | 1.0 |
| User-Agent: | Thunderbird 1.5.0.5 (Windows/20060719) |
| X-IsSubscribed: | yes |
| 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 |
Hi! I wanna test, if a path in Cygwin exists, and if not, it should be created. I tried to write a Batch-File, but dont know how to fill the if statement: if not %cygwin%\test -d /myfolder/myfolder2 %cygwin%\mkdir /myfolder/myfolder2 How would you solve the Problem? I think, its easy for you, but sorry, i'm not yet familiar with Unix- and Windows Commandlines... Thanks! Kai -- 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 |