This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Using test in Cygwin and Batch-File
- From: Kai Schlichting <Gayson at web dot de>
- To: cygwin at cygwin dot com
- Date: Thu, 17 Aug 2006 00:45:40 +0200
- Subject: Using test in Cygwin and Batch-File
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/