X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Kai Schlichting Subject: Using test in Cygwin and Batch-File Date: Thu, 17 Aug 2006 00:45:40 +0200 Lines: 11 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit 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: List-Archive: List-Post: List-Help: , 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/